diff options
author | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2014-07-28 15:35:40 +0200 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2014-07-28 18:29:40 +0200 |
commit | 2dd9a0cc218f5bd6856c86e8b5d405c1214c9b73 (patch) | |
tree | b80854fdf58ee0b4fe40ab31a98517f11774ce07 /src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.h | |
parent | e4189136ac342e50507b1d937f1079eaa222d1c4 (diff) | |
download | qt-creator-2dd9a0cc218f5bd6856c86e8b5d405c1214c9b73.tar.gz |
QmlDesigner.PropertyEditor: Fix selection in gradient editing
Since property change signals can be emitted in any order we have to rely
on selection changed signals to guarantee a valid state.
I use the isInValidState which is only true after all properties have been
setup correctly after a selection change for this.
I added the signal selectionChanged for this.
Task-number: QTCREATORBUG-12642
Task-number: QTCREATORBUG-12506
Change-Id: Idf3bbe8236ece541ca267efb1bd68e0737c99716
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.h')
-rw-r--r-- | src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.h b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.h index e79caab56a..acc7571cac 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.h +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.h @@ -75,6 +75,7 @@ public: static bool checkIfUrlExists(const QUrl &url); void emitSelectionToBeChanged(); + void emitSelectionChanged(); private: void createPropertyEditorValue(const QmlObjectNode &qmlObjectNode, |