From 36c00b434473b27b8cd19c261ce15622927e3225 Mon Sep 17 00:00:00 2001
From: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Date: Mon, 1 Nov 2010 10:33:46 +0100
Subject: [PATCH] QmlDesigner.propertyEditor: show that anchors are disabled in
 states

I also added a tooltip.

Reviewed-by: Lasse Holmstedt
---
 share/qtcreator/qmldesigner/propertyeditor/Qt/Layout.qml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/Layout.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/Layout.qml
index df7f4af02ed..9f10d14f430 100644
--- a/share/qtcreator/qmldesigner/propertyeditor/Qt/Layout.qml
+++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/Layout.qml
@@ -25,9 +25,10 @@ GroupBox {
 
 
                 AnchorButtons {
-                    //opacity: enabled?1.0:0.5;
+                    opacity: enabled ? 1.0 : 0.3;
                     enabled: isInBaseState
                     fixedWidth:266
+                    toolTip: enabled ? qsTr("Set anchors") : qsTr("Setting anchors in states is not supported.")
                 }
             }
         }
-- 
GitLab