summaryrefslogtreecommitdiffstats
path: root/examples/declarative/layouts
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-11-10 00:58:01 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-11-10 00:58:01 (GMT)
commit54f1e5dee6d2cf3ec54626c9bca0ed07e9573a35 (patch)
tree89486c25422e0ddbd0b98b4ac4a98e9db10985b0 /examples/declarative/layouts
parent4abf24ebe42a0c048f0f9e3468f47efb1d5d535a (diff)
downloadQt-54f1e5dee6d2cf3ec54626c9bca0ed07e9573a35.zip
Qt-54f1e5dee6d2cf3ec54626c9bca0ed07e9573a35.tar.gz
Qt-54f1e5dee6d2cf3ec54626c9bca0ed07e9573a35.tar.bz2
Clarify the role of positioner transitions
They are only for the positioner's position changes, other changes are under the designers control and the designer should animate them. Task-number: QT-2239
Diffstat (limited to 'examples/declarative/layouts')
-rw-r--r--examples/declarative/layouts/positioners.qml40
1 files changed, 21 insertions, 19 deletions
diff --git a/examples/declarative/layouts/positioners.qml b/examples/declarative/layouts/positioners.qml
index 129effe..e912632 100644
--- a/examples/declarative/layouts/positioners.qml
+++ b/examples/declarative/layouts/positioners.qml
@@ -25,9 +25,13 @@ Rectangle {
}
}
Rectangle { color: "red"; width: 100; height: 50; border.color: "black"; radius: 15 }
- Rectangle { id: blueV1; color: "lightsteelblue"; width: 100; height: 50; border.color: "black"; radius: 15 }
+ Rectangle { id: blueV1; color: "lightsteelblue"; width: 100; height: 50; border.color: "black"; radius: 15
+ opacity: Behavior{NumberAnimation{}}
+ }
Rectangle { color: "green"; width: 100; height: 50; border.color: "black"; radius: 15 }
- Rectangle { id: blueV2; color: "lightsteelblue"; width: 100; height: 50; border.color: "black"; radius: 15 }
+ Rectangle { id: blueV2; color: "lightsteelblue"; width: 100; height: 50; border.color: "black"; radius: 15
+ opacity: Behavior{NumberAnimation{}}
+ }
Rectangle { color: "orange"; width: 100; height: 50; border.color: "black"; radius: 15 }
}
@@ -43,22 +47,20 @@ Rectangle {
NumberAnimation {
matchProperties: "x"; from: 500; duration:500; easing: "easeOutQuad"
}
- NumberAnimation {
- matchProperties: "opacity"; from: 0; duration: 500;
- }
}
remove: Transition {
NumberAnimation {
matchProperties: "x"; to: 500; duration:500; easing: "easeInQuad"
}
- NumberAnimation {
- matchProperties: "opacity"; from: 1; duration: 500
- }
}
Rectangle { color: "red"; width: 50; height: 100; border.color: "black"; radius: 15 }
- Rectangle { id: blueH1; color: "lightsteelblue"; width: 50; height: 100; border.color: "black"; radius: 15 }
+ Rectangle { id: blueH1; color: "lightsteelblue"; width: 50; height: 100; border.color: "black"; radius: 15
+ opacity: Behavior{NumberAnimation{}}
+ }
Rectangle { color: "green"; width: 50; height: 100; border.color: "black"; radius: 15 }
- Rectangle { id: blueH2; color: "lightsteelblue"; width: 50; height: 100; border.color: "black"; radius: 15 }
+ Rectangle { id: blueH2; color: "lightsteelblue"; width: 50; height: 100; border.color: "black"; radius: 15
+ opacity: Behavior{NumberAnimation{}}
+ }
Rectangle { color: "orange"; width: 50; height: 100; border.color: "black"; radius: 15 }
}
@@ -103,9 +105,6 @@ Rectangle {
remove: Transition {
NumberAnimation {
- matchProperties: "opacity"; from: 1; to: 0; duration: 500
- }
- NumberAnimation {
matchProperties: "x,y"; easing: "easeOutBounce"
}
}
@@ -118,19 +117,22 @@ Rectangle {
add: Transition {
NumberAnimation {
- matchProperties: "opacity"; from: 0; to: 1; duration: 500
- }
- NumberAnimation {
matchProperties: "x,y"; easing: "easeOutBounce"
}
}
Rectangle { color: "red"; width: 50; height: 100; border.color: "black"; radius: 15 }
- Rectangle { id: blueG1; color: "lightsteelblue"; width: 50; height: 100; border.color: "black"; radius: 15 }
+ Rectangle { id: blueG1; color: "lightsteelblue"; width: 50; height: 100; border.color: "black"; radius: 15
+ opacity: Behavior{NumberAnimation{}}
+ }
Rectangle { color: "green"; width: 50; height: 100; border.color: "black"; radius: 15 }
- Rectangle { id: blueG2; color: "lightsteelblue"; width: 50; height: 100; border.color: "black"; radius: 15 }
+ Rectangle { id: blueG2; color: "lightsteelblue"; width: 50; height: 100; border.color: "black"; radius: 15
+ opacity: Behavior{NumberAnimation{}}
+ }
Rectangle { color: "orange"; width: 50; height: 100; border.color: "black"; radius: 15 }
- Rectangle { id: blueG3; color: "lightsteelblue"; width: 50; height: 100; border.color: "black"; radius: 15 }
+ Rectangle { id: blueG3; color: "lightsteelblue"; width: 50; height: 100; border.color: "black"; radius: 15
+ opacity: Behavior{NumberAnimation{}}
+ }
Rectangle { color: "red"; width: 50; height: 100; border.color: "black"; radius: 15 }
Rectangle { color: "green"; width: 50; height: 100; border.color: "black"; radius: 15 }
Rectangle { color: "orange"; width: 50; height: 100; border.color: "black"; radius: 15 }