renamed signal

Thu, 08 Mar 2018 11:39:18 +0200

author
Santeri Piippo
date
Thu, 08 Mar 2018 11:39:18 +0200
changeset 1279
0f6a4a7cafec
parent 1278
6e1ea24e5a5e
child 1280
5c30efc9032b

renamed signal

src/lddocument.cpp file | annotate | diff | comparison | revisions
src/linetypes/modelobject.h file | annotate | diff | comparison | revisions
src/model.cpp file | annotate | diff | comparison | revisions
--- a/src/lddocument.cpp	Thu Mar 08 11:36:55 2018 +0200
+++ b/src/lddocument.cpp	Thu Mar 08 11:39:18 2018 +0200
@@ -275,7 +275,7 @@
 	history()->add<AddHistoryEntry>(index);
 	connect(
 		object,
-		SIGNAL(codeChanged(LDObjectState, LDObjectState)),
+		SIGNAL(modified(LDObjectState, LDObjectState)),
 		this,
 		SLOT(objectChanged(LDObjectState, LDObjectState))
 	);
--- a/src/linetypes/modelobject.h	Thu Mar 08 11:36:55 2018 +0200
+++ b/src/linetypes/modelobject.h	Thu Mar 08 11:39:18 2018 +0200
@@ -89,7 +89,7 @@
 	static LDObject* newFromType(LDObjectType type);
 
 signals:
-	void codeChanged(const LDObjectState& before, const LDObjectState& after);
+	void modified(const LDObjectState& before, const LDObjectState& after);
 
 protected:
 	template<typename T>
@@ -276,6 +276,6 @@
 	{
 		Serializer::Archive before = Serializer::store(this);
 		*property = value;
-		emit codeChanged(before, Serializer::store(this));
+		emit modified(before, Serializer::store(this));
 	}
 }
--- a/src/model.cpp	Thu Mar 08 11:36:55 2018 +0200
+++ b/src/model.cpp	Thu Mar 08 11:39:18 2018 +0200
@@ -40,7 +40,7 @@
 
 void Model::installObject(int row, LDObject* object)
 {
-	connect(object, SIGNAL(codeChanged(LDObjectState, LDObjectState)), this, SLOT(recountTriangles()));
+	connect(object, SIGNAL(modified(LDObjectState, LDObjectState)), this, SLOT(recountTriangles()));
 	beginInsertRows({}, row, row);
 	_objects.insert(row, object);
 

mercurial