forked from qt-creator/qt-creator
QmlDesigner: Add and dispatch ValuesModifiedCommand
We already have valuesChanged() which notifies that a property of the C++ QObject has changed. This patch adds valuesModified() which notifies that values in the data model should be changed. While valuesChanged() only changes the so called instance value, valuesModified() does change the internal data model and as a result the QML code. This is done in NodeInstanceView::valuesModified(). This enabled the qml2puppet to acutally change values, like a property editor would. Change-Id: I2493b9e626c4b194e332a7a096de3dbf2195514a Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
namespace QmlDesigner {
|
||||
|
||||
class ValuesChangedCommand;
|
||||
class ValuesModifiedCommand;
|
||||
class PixmapChangedCommand;
|
||||
class InformationChangedCommand;
|
||||
class ChildrenChangedCommand;
|
||||
@@ -46,6 +47,7 @@ class NodeInstanceClientInterface
|
||||
public:
|
||||
virtual void informationChanged(const InformationChangedCommand &command) = 0;
|
||||
virtual void valuesChanged(const ValuesChangedCommand &command) = 0;
|
||||
virtual void valuesModified(const ValuesModifiedCommand &command) = 0;
|
||||
virtual void pixmapChanged(const PixmapChangedCommand &command) = 0;
|
||||
virtual void childrenChanged(const ChildrenChangedCommand &command) = 0;
|
||||
virtual void statePreviewImagesChanged(const StatePreviewImageChangedCommand &command) = 0;
|
||||
|
||||
Reference in New Issue
Block a user