From a98a6d05e4ce6fdc1887f5c38cc32aaf30bf6176 Mon Sep 17 00:00:00 2001
From: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Date: Thu, 29 Apr 2010 09:49:32 +0200
Subject: [PATCH] QmlDesigner.propertyEditor: hide ExpressionEdit if selection
 changes

See: BAUHAUS-648
---
 .../qmldesigner/propertyeditor/Qt/ExpressionEditor.qml     | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/ExpressionEditor.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/ExpressionEditor.qml
index 2c79092d7d1..483efc6ce51 100644
--- a/share/qtcreator/qmldesigner/propertyeditor/Qt/ExpressionEditor.qml
+++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/ExpressionEditor.qml
@@ -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) {
-- 
GitLab