diff options
author | A-Team <ateam@pad.test.qt.nokia.com> | 2010-12-03 23:00:13 (GMT) |
---|---|---|
committer | A-Team <ateam@pad.test.qt.nokia.com> | 2010-12-03 23:00:13 (GMT) |
commit | a82e30125f2d6f9a8dc820c5d117a359244231f7 (patch) | |
tree | 23b3f33eb9c8a2d02c1f7932c5ae20d83361a4e1 /examples | |
parent | d70dbc6050404787c15be814054ab251cfe09db7 (diff) | |
parent | 14e4fd08ff67578dccf5e85a88fcadf747ae5852 (diff) | |
download | Qt-a82e30125f2d6f9a8dc820c5d117a359244231f7.zip Qt-a82e30125f2d6f9a8dc820c5d117a359244231f7.tar.gz Qt-a82e30125f2d6f9a8dc820c5d117a359244231f7.tar.bz2 |
Merge branch '4.7-upstream' into 4.7-doc
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/modelviews/visualitemmodel/visualitemmodel.qml | 7 | ||||
-rw-r--r-- | examples/declarative/ui-components/tabwidget/TabWidget.qml | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/examples/declarative/modelviews/visualitemmodel/visualitemmodel.qml b/examples/declarative/modelviews/visualitemmodel/visualitemmodel.qml index 15f2f11..f6564f7 100644 --- a/examples/declarative/modelviews/visualitemmodel/visualitemmodel.qml +++ b/examples/declarative/modelviews/visualitemmodel/visualitemmodel.qml @@ -55,16 +55,22 @@ Rectangle { width: view.width; height: view.height color: "#FFFEF0" Text { text: "Page 1"; font.bold: true; anchors.centerIn: parent } + + Component.onDestruction: print("destroyed 1") } Rectangle { width: view.width; height: view.height color: "#F0FFF7" Text { text: "Page 2"; font.bold: true; anchors.centerIn: parent } + + Component.onDestruction: print("destroyed 2") } Rectangle { width: view.width; height: view.height color: "#F4F0FF" Text { text: "Page 3"; font.bold: true; anchors.centerIn: parent } + + Component.onDestruction: print("destroyed 3") } } @@ -76,6 +82,7 @@ Rectangle { highlightRangeMode: ListView.StrictlyEnforceRange orientation: ListView.Horizontal snapMode: ListView.SnapOneItem; flickDeceleration: 2000 + cacheBuffer: 200 } Rectangle { diff --git a/examples/declarative/ui-components/tabwidget/TabWidget.qml b/examples/declarative/ui-components/tabwidget/TabWidget.qml index f066fd2..2a74c46 100644 --- a/examples/declarative/ui-components/tabwidget/TabWidget.qml +++ b/examples/declarative/ui-components/tabwidget/TabWidget.qml @@ -45,8 +45,8 @@ Item { // Setting the default property to stack.children means any child items // of the TabWidget are actually added to the 'stack' item's children. - // See the "Extending Types from QML" documentation for details on default - // properties. + // See the "Writing QML Components: Properties, Methods and Signals" + // documentation for details on default properties. default property alias content: stack.children property int current: 0 |