OSDN Git Service

QmlDesigner.statesEditor: fixing some glitches and polish
authorThomas Hartmann <Thomas.Hartmann@nokia.com>
Thu, 29 Apr 2010 12:21:31 +0000 (14:21 +0200)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>
Thu, 29 Apr 2010 12:27:27 +0000 (14:27 +0200)
I did this together with Christiaan Janssen

Reviewed by: Christiaan Janssen

src/plugins/qmldesigner/components/stateseditor/stateslist.qml

index 3c6b7fb..bb84a47 100644 (file)
@@ -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"