summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativepathview/data/treemodel.qml
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-02-10 20:00:15 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-02-10 20:00:15 (GMT)
commitf9901ac23da89586dd9ec385f1d5507d931caba5 (patch)
treec997aaded2a18e06907ed4db69fbb74efc1884c6 /tests/auto/declarative/qdeclarativepathview/data/treemodel.qml
parent1f433202e13e2cde0f02a2196d9ff8c6712f86ed (diff)
parentd1bfdd4f7d4769786c4b9e385e77468d89a31d16 (diff)
downloadQt-f9901ac23da89586dd9ec385f1d5507d931caba5.zip
Qt-f9901ac23da89586dd9ec385f1d5507d931caba5.tar.gz
Qt-f9901ac23da89586dd9ec385f1d5507d931caba5.tar.bz2
Merge branch 'qt-master-from-4.7' of scm.dev.nokia.troll.no:qt/qt-integration into master-integration
* 'qt-master-from-4.7' of scm.dev.nokia.troll.no:qt/qt-integration: (299 commits) PathView items were not correctly updated when rootIndex changed. Allow text to selected in a TextEdit or TextInput inside a Flickable. Update modules-related tests and docs CLeanup registers after AddString 4.7.2 changes Change paging attributes for Symbian binaries Fix build failure Fix regression in creating mkspecs/default Stop focus propagation of touch events when flag is set. Fixed tst_qpixmap::toImageDeepCopy autotest for GL graphicssystem. Changes for 4.7.2 Recreate Symbian raster backing store when WA_TranslucentBackground set Fix auto test failure. PathView regression: dragging the path didn't update currentIndex Fix docs for variant and list basic types Add test for importing plugins that contain QML files Call onAdd() for first items added to ListView and GridView Use same values for Text.lineHeightMode and QTextBlock::lineHeightMode from master. Don't clear pre-edit text when a graphics items loses focus. Fix compilation of QMutableSetIterator::value() with QT_STRICT_ITERATORS ...
Diffstat (limited to 'tests/auto/declarative/qdeclarativepathview/data/treemodel.qml')
-rw-r--r--tests/auto/declarative/qdeclarativepathview/data/treemodel.qml19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativepathview/data/treemodel.qml b/tests/auto/declarative/qdeclarativepathview/data/treemodel.qml
new file mode 100644
index 0000000..56f7ae4
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativepathview/data/treemodel.qml
@@ -0,0 +1,19 @@
+import QtQuick 1.0
+
+PathView {
+ width: 320
+ height: 240
+ function setRoot(index) {
+ vdm.rootIndex = vdm.modelIndex(index);
+ }
+ model: VisualDataModel {
+ id: vdm
+ model: myModel
+ delegate: Text { objectName: "wrapper"; text: display }
+ }
+
+ path: Path {
+ startX: 0; startY: 120
+ PathLine { x: 320; y: 120 }
+ }
+}