aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/stateseditor/stateslist.qml
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@nokia.com>2010-04-29 14:21:31 +0200
committerThomas Hartmann <Thomas.Hartmann@nokia.com>2010-04-29 14:27:27 +0200
commit863d8f56e973bb16003dab20d210b0b5bd03d66a (patch)
treedfce5a517ee59d42d7252b0318f3792684068869 /src/plugins/qmldesigner/components/stateseditor/stateslist.qml
parent3f39f5cd8d19a622e2c2cd9b2e6438496b5bca8d (diff)
QmlDesigner.statesEditor: fixing some glitches and polish
I did this together with Christiaan Janssen Reviewed by: Christiaan Janssen
Diffstat (limited to 'src/plugins/qmldesigner/components/stateseditor/stateslist.qml')
-rw-r--r--src/plugins/qmldesigner/components/stateseditor/stateslist.qml22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/plugins/qmldesigner/components/stateseditor/stateslist.qml b/src/plugins/qmldesigner/components/stateseditor/stateslist.qml
index 3c6b7fb980..bb84a47721 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"