hook up dataChanged

Tue, 13 Feb 2018 14:22:10 +0200

author
Santeri Piippo
date
Tue, 13 Feb 2018 14:22:10 +0200
changeset 1241
0b5f84d2a68a
parent 1240
cebb7ef54f41
child 1242
725cb1084044

hook up dataChanged

src/lddocument.cpp file | annotate | diff | comparison | revisions
--- a/src/lddocument.cpp	Tue Feb 13 14:19:07 2018 +0200
+++ b/src/lddocument.cpp	Tue Feb 13 14:22:10 2018 +0200
@@ -306,6 +306,8 @@
 	addToHistory(new EditHistoryEntry {object->lineNumber(), before, after});
 	redoVertices();
 	emit objectModified(object);
+	int linenumber = object->lineNumber();
+	emit dataChanged(index(linenumber), index(linenumber));
 }
 
 LDObject* LDDocument::withdrawAt(int position)

mercurial