summaryrefslogtreecommitdiffstats
path: root/examples/declarative
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-07-06 05:30:33 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-07-06 05:30:33 (GMT)
commitc9d487b6ed3ac9bb666c2a1fe08252f3c6dcb455 (patch)
tree68ca42e8c1bbfcf99e6db77be213688d437feeba /examples/declarative
parent6b2ec2ab8df94233d6ba7960d5bfb3c7461b76ec (diff)
downloadQt-c9d487b6ed3ac9bb666c2a1fe08252f3c6dcb455.zip
Qt-c9d487b6ed3ac9bb666c2a1fe08252f3c6dcb455.tar.gz
Qt-c9d487b6ed3ac9bb666c2a1fe08252f3c6dcb455.tar.bz2
doc improvements
Diffstat (limited to 'examples/declarative')
-rw-r--r--examples/declarative/ui-components/tabwidget/TabWidget.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/declarative/ui-components/tabwidget/TabWidget.qml b/examples/declarative/ui-components/tabwidget/TabWidget.qml
index 9642e04..ce57213 100644
--- a/examples/declarative/ui-components/tabwidget/TabWidget.qml
+++ b/examples/declarative/ui-components/tabwidget/TabWidget.qml
@@ -43,9 +43,14 @@ import Qt 4.7
Item {
id: tabWidget
- property int current: 0
+ // 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.
default property alias content: stack.children
+ property int current: 0
+
onCurrentChanged: setOpacities()
Component.onCompleted: setOpacities()