summaryrefslogtreecommitdiffstats
path: root/examples/declarative/parallax/qml/ParallaxView.qml
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-05-07 09:15:32 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-05-07 09:15:32 (GMT)
commit695ddc4a13233c8e6f626fa205336f90f8c5a565 (patch)
tree88da8a1d80219e5788db3f4e138d1d281bb3d816 /examples/declarative/parallax/qml/ParallaxView.qml
parent1824eb63f6b2f8baa26b20c57fc50db84eefaa30 (diff)
parent67bf465253db71c0eddbc6ffcb811dd65c00b207 (diff)
downloadQt-695ddc4a13233c8e6f626fa205336f90f8c5a565.zip
Qt-695ddc4a13233c8e6f626fa205336f90f8c5a565.tar.gz
Qt-695ddc4a13233c8e6f626fa205336f90f8c5a565.tar.bz2
Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Conflicts: examples/declarative/dynamic/qml/itemCreation.js
Diffstat (limited to 'examples/declarative/parallax/qml/ParallaxView.qml')
-rw-r--r--examples/declarative/parallax/qml/ParallaxView.qml15
1 files changed, 7 insertions, 8 deletions
diff --git a/examples/declarative/parallax/qml/ParallaxView.qml b/examples/declarative/parallax/qml/ParallaxView.qml
index 4b38d45..e869a21 100644
--- a/examples/declarative/parallax/qml/ParallaxView.qml
+++ b/examples/declarative/parallax/qml/ParallaxView.qml
@@ -18,9 +18,9 @@ Item {
id: list
currentIndex: root.currentIndex
- onCurrentIndexChanged: root.currentIndex = currentIndex
+ onCurrentIndexChanged: root.currentIndex = currentIndex
- orientation: "Horizontal"
+ orientation: Qt.Horizontal
boundsBehavior: Flickable.DragOverBounds
anchors.fill: parent
model: VisualItemModel { id: visualModel }
@@ -45,10 +45,10 @@ Item {
anchors.horizontalCenter: parent.horizontalCenter
width: Math.min(count * 50, parent.width - 20)
interactive: width == parent.width - 20
- orientation: "Horizontal"
+ orientation: Qt.Horizontal
- delegate: Item {
- width: 50; height: 50
+ delegate: Item {
+ width: 50; height: 50
id: delegateRoot
Image {
@@ -56,7 +56,6 @@ Item {
source: modelData.icon
smooth: true
scale: 0.8
- transformOrigin: "Center"
}
MouseArea {
@@ -64,10 +63,10 @@ Item {
onClicked: { root.currentIndex = index }
}
- states: State {
+ states: State {
name: "Selected"
when: delegateRoot.ListView.isCurrentItem == true
- PropertyChanges {
+ PropertyChanges {
target: image
scale: 1
y: -5