OSDN Git Service

QmlDesigner.propertyEditor: hide ExpressionEdit if selection changes
authorThomas Hartmann <Thomas.Hartmann@nokia.com>
Thu, 29 Apr 2010 07:49:32 +0000 (09:49 +0200)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>
Thu, 29 Apr 2010 07:53:45 +0000 (09:53 +0200)
See: BAUHAUS-648

share/qtcreator/qmldesigner/propertyeditor/Qt/ExpressionEditor.qml

index 2c79092..483efc6 100644 (file)
@@ -9,7 +9,12 @@ QWidget {
     height: 40
     property bool active: false
     property variant backendValue;
-
+    
+    property bool selectionFlag: selectionChanged
+    
+    onSelectionFlagChanged: {
+        expressionEdit.active = false;    
+    }
 
     onActiveChanged: {
         if (active) {