diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2010-03-11 05:28:49 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2010-03-11 05:28:49 (GMT) |
commit | 56128195f2e7edbdd93251891b3d2dc2b4a00f20 (patch) | |
tree | d44d15baa2b9c40f335250f56098609458e30183 /examples/declarative | |
parent | fcea69d5136749827439fd6b2b45371034ca9599 (diff) | |
parent | f42c8faec825126d335e3c5a63c2e034476865e0 (diff) | |
download | Qt-56128195f2e7edbdd93251891b3d2dc2b4a00f20.zip Qt-56128195f2e7edbdd93251891b3d2dc2b4a00f20.tar.gz Qt-56128195f2e7edbdd93251891b3d2dc2b4a00f20.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'examples/declarative')
-rw-r--r-- | examples/declarative/colorbrowser/colorbrowser.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/colorbrowser/colorbrowser.qml b/examples/declarative/colorbrowser/colorbrowser.qml index 421ae07..d4c21e7 100644 --- a/examples/declarative/colorbrowser/colorbrowser.qml +++ b/examples/declarative/colorbrowser/colorbrowser.qml @@ -16,7 +16,7 @@ Rectangle { GridView { id: gridView; model: visualModel.parts.grid; width: mainWindow.width; height: mainWindow.height cellWidth: 160; cellHeight: 160; interactive: false - onCurrentIndexChanged: listView.positionViewAtIndex(currentIndex) + onCurrentIndexChanged: listView.positionViewAtIndex(currentIndex, ListView.Contain) } } @@ -25,7 +25,7 @@ Rectangle { ListView { id: listView; model: visualModel.parts.list; orientation: Qt.Horizontal width: mainWindow.width; height: mainWindow.height; interactive: false - onCurrentIndexChanged: gridView.positionViewAtIndex(currentIndex) + onCurrentIndexChanged: gridView.positionViewAtIndex(currentIndex, GridView.Contain) highlightRangeMode: ListView.StrictlyEnforceRange; snapMode: ListView.SnapOneItem } } |