diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-05-07 03:40:24 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-05-07 03:40:24 (GMT) |
commit | bc657dc60e8fe91543f0a75fb31418e3e553a256 (patch) | |
tree | 2df82453d9b3b352a6e8bce9f140f0781c8bc628 /examples/declarative/parallax/qml/ParallaxView.qml | |
parent | 4600f2053802ad41550a84573bdcbe4b50fb5a67 (diff) | |
parent | abd2c025d088064c31fd1b0e9c5ea29996e51bbe (diff) | |
download | Qt-bc657dc60e8fe91543f0a75fb31418e3e553a256.zip Qt-bc657dc60e8fe91543f0a75fb31418e3e553a256.tar.gz Qt-bc657dc60e8fe91543f0a75fb31418e3e553a256.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Conflicts:
examples/declarative/dynamic/qml/PerspectiveItem.qml
Diffstat (limited to 'examples/declarative/parallax/qml/ParallaxView.qml')
-rw-r--r-- | examples/declarative/parallax/qml/ParallaxView.qml | 15 |
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 |