summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/pathview/pathview.qml
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-06-03 03:19:36 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-06-03 03:19:36 (GMT)
commitbb30e507c69ef9b91af73638ffb5771ce4f808e0 (patch)
tree3e154c2ad790dd6d157bfa8c4d4f7f8d484c3342 /doc/src/snippets/declarative/pathview/pathview.qml
parent0fd09af3a05ac88c55fed73c85dc1c5aba68f057 (diff)
parent867730e3dfa553d7bc230cdcbd655347f5103278 (diff)
downloadQt-bb30e507c69ef9b91af73638ffb5771ce4f808e0.zip
Qt-bb30e507c69ef9b91af73638ffb5771ce4f808e0.tar.gz
Qt-bb30e507c69ef9b91af73638ffb5771ce4f808e0.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: Add Q_AUTOTEST_EXPORT Ensure PathView mappedRange is updated when pathItemCount changes. Doc Fix basic types docs indentation Improve basic types documentation. Don't imply that Item has Remove Media elements from Elements index Add some Q_AUTOTEST_EXPORTs Keep ListView highlight in sync when currentItem changes geometry. QDeclarativeImage::updatePaintedGeometry() does not need to be a slot QML viewer now supports TopUp, TopDown, RightUp and LeftUp orientations Text should update when the alignment changes. Add qml import plugins to qt.iby and qt.sis Take into account platform differences in input panel support More autoScroll fixes Doc fixes and improvements - fix some example code, link to Add Vector3dAnimation to list of QML elements
Diffstat (limited to 'doc/src/snippets/declarative/pathview/pathview.qml')
-rw-r--r--doc/src/snippets/declarative/pathview/pathview.qml22
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/src/snippets/declarative/pathview/pathview.qml b/doc/src/snippets/declarative/pathview/pathview.qml
index 31b793d..1669847 100644
--- a/doc/src/snippets/declarative/pathview/pathview.qml
+++ b/doc/src/snippets/declarative/pathview/pathview.qml
@@ -39,27 +39,27 @@
**
****************************************************************************/
+//! [0]
import Qt 4.7
Rectangle {
- width: 240; height: 200; color: 'white'
-//! [0]
+ width: 240; height: 200
+
//! [1]
Component {
id: delegate
- Item {
- id: wrapper
- width: 80; height: 80
- Column {
- Image { anchors.horizontalCenter: name.horizontalCenter; width: 64; height: 64; source: icon }
- Text { text: name; font.pointSize: 16}
- }
+ Column {
+ Image { anchors.horizontalCenter: name.horizontalCenter; width: 64; height: 64; source: icon }
+ Text { text: name; font.pointSize: 16 }
}
}
//! [1]
+
//! [2]
PathView {
- anchors.fill: parent; model: MenuModel; delegate: delegate
+ anchors.fill: parent
+ model: ContactModel {}
+ delegate: delegate
path: Path {
startX: 120; startY: 100
PathQuad { x: 120; y: 25; controlX: 260; controlY: 75 }
@@ -67,5 +67,5 @@ Rectangle {
}
}
//! [2]
-//! [0]
}
+//! [0]