diff options
author | Martin Jones <martin.jones@nokia.com> | 2012-07-23 11:08:06 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-23 06:38:18 +0200 |
commit | 2a4bb9608498876c3c2229eef91b8723a7fd8e47 (patch) | |
tree | 0c54b33736537633a5ab73cc4ee1a5777bf4323e /tests/auto/quick/qquickpathview/data | |
parent | 773d722ff2f503c3805e802022cbc487d5bb4126 (diff) |
Add methods to PathView: positionViewAtIndex(), indexAt(), itemAt()
These methods are already present in ListView and GridView.
Change-Id: I3777fccdecd77c8ab756a0062c71c6e1bfb749ef
Reviewed-by: Bea Lam <bea.lam@nokia.com>
Diffstat (limited to 'tests/auto/quick/qquickpathview/data')
-rw-r--r-- | tests/auto/quick/qquickpathview/data/pathview3.qml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickpathview/data/pathview3.qml b/tests/auto/quick/qquickpathview/data/pathview3.qml index ded5a3911c..53b4df1d15 100644 --- a/tests/auto/quick/qquickpathview/data/pathview3.qml +++ b/tests/auto/quick/qquickpathview/data/pathview3.qml @@ -2,8 +2,10 @@ import QtQuick 2.0 PathView { id: photoPathView - y: 100; width: 800; height: 330; pathItemCount: 4; offset: 1 + property bool enforceRange: true + width: 800; height: 330; pathItemCount: 4; offset: 1 dragMargin: 24 + highlightRangeMode: enforceRange ? PathView.StrictlyEnforceRange : PathView.NoHighlightRange preferredHighlightBegin: 0.50 preferredHighlightEnd: 0.50 @@ -48,12 +50,17 @@ PathView { id: photoDelegate Rectangle { id: wrapper + objectName: "wrapper" width: 85; height: 85; color: lColor + Text { text: index } + transform: Rotation { id: itemRotation; origin.x: wrapper.width/2; origin.y: wrapper.height/2 axis.y: 1; axis.z: 0 } } } + + Text { text: "Offset: " + photoPathView.offset } } |