From 863d8f56e973bb16003dab20d210b0b5bd03d66a Mon Sep 17 00:00:00 2001
From: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Date: Thu, 29 Apr 2010 14:21:31 +0200
Subject: [PATCH] QmlDesigner.statesEditor: fixing some glitches and polish

I did this together with Christiaan Janssen

Reviewed by: Christiaan Janssen
---
 .../components/stateseditor/stateslist.qml    | 22 +++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)

diff --git a/src/plugins/qmldesigner/components/stateseditor/stateslist.qml b/src/plugins/qmldesigner/components/stateseditor/stateslist.qml
index 3c6b7fb980c..bb84a477215 100644
--- a/src/plugins/qmldesigner/components/stateseditor/stateslist.qml
+++ b/src/plugins/qmldesigner/components/stateseditor/stateslist.qml
@@ -93,8 +93,8 @@ Rectangle {
             property int baseStateOffset:(index==0?15:0)
 
             width:img.width+32+baseStateOffset + (index==0?6:0)
-            height: img.height + txt.height + (index==0?29:25)
-            y:(index==0?0:4)
+            height: img.height + txt.height + 29 //(index==0?29:25)
+            //y:(index==0?0:4)
 
             property bool isCurrentState: root.currentStateIndex == index;
             onXChanged: scrollBarAdjuster.adjustScrollBar();
@@ -466,13 +466,14 @@ Rectangle {
         Rectangle {
             gradient: Gradient {
                 GradientStop { position: 0.0; color: "transparent" }
+                GradientStop { position: 0.5; color: root.colorAlpha }
                 GradientStop { position: 1.0; color: root.color }
             }
             width:parent.height
             height:8
             rotation:-90
-            y : 68
-            x : -68
+            y : 67
+            x : -67
         }
 
 
@@ -510,6 +511,19 @@ Rectangle {
                         }
                     }
             ]
+            
+            transitions: [
+                    Transition {
+                        from: ""
+                        to: "Hover"
+                        reversible: true
+                        ColorAnimation {
+                            duration: 150
+                            target: addStateBox
+                            properties: "buttonColor"
+                        }
+                    }
+                ]
 
             property variant buttonColor:"#282828"
             property variant defaultColor:"#282828"
-- 
GitLab