# HG changeset patch # User Santeri Piippo # Date 1520501958 -7200 # Node ID 0f6a4a7cafecd0d999d23c9348cf5b30597b2652 # Parent 6e1ea24e5a5e8c82833f643333ed6e6d8bf97a71 renamed signal diff -r 6e1ea24e5a5e -r 0f6a4a7cafec src/lddocument.cpp --- 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(index); connect( object, - SIGNAL(codeChanged(LDObjectState, LDObjectState)), + SIGNAL(modified(LDObjectState, LDObjectState)), this, SLOT(objectChanged(LDObjectState, LDObjectState)) ); diff -r 6e1ea24e5a5e -r 0f6a4a7cafec src/linetypes/modelobject.h --- 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 @@ -276,6 +276,6 @@ { Serializer::Archive before = Serializer::store(this); *property = value; - emit codeChanged(before, Serializer::store(this)); + emit modified(before, Serializer::store(this)); } } diff -r 6e1ea24e5a5e -r 0f6a4a7cafec src/model.cpp --- 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);