diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-07-07 04:12:19 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-07-07 04:12:19 (GMT) |
commit | b4b1b118015d1dcef63b065a609234a18f332ba4 (patch) | |
tree | 3ed0cd064a056e02b44dbc2b0f9df92c09359d39 /examples/declarative/ui-components/tabwidget/TabWidget.qml | |
parent | 628159323c60c434a202b036ecbaf5e433c703e8 (diff) | |
parent | e3bc34b40559e0cb88363039ee61300478e7c700 (diff) | |
download | Qt-b4b1b118015d1dcef63b065a609234a18f332ba4.zip Qt-b4b1b118015d1dcef63b065a609234a18f332ba4.tar.gz Qt-b4b1b118015d1dcef63b065a609234a18f332ba4.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'examples/declarative/ui-components/tabwidget/TabWidget.qml')
-rw-r--r-- | examples/declarative/ui-components/tabwidget/TabWidget.qml | 7 |
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() |