diff options
| author | Jens Bache-Wiig <jens.bache-wiig@digia.com> | 2013-02-23 12:24:52 +0100 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-01 16:36:02 +0100 |
| commit | ef9eba82884c73816562f23aa89fd007310eb259 (patch) | |
| tree | c432487be87c667cccc7371594b460e1e0491c62 /src/controls/Tab.qml | |
| parent | caafedc9ef8acbe414271ab30d745a34e8e43984 (diff) | |
| download | qtquickcontrols-ef9eba82884c73816562f23aa89fd007310eb259.tar.gz | |
Update TabView API and allow inser/remove of tabs
Change-Id: I6b10f539b036811243676f34c0fabe403c263923
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/controls/Tab.qml')
| -rw-r--r-- | src/controls/Tab.qml | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/controls/Tab.qml b/src/controls/Tab.qml index fbec51df..91fa7ba9 100644 --- a/src/controls/Tab.qml +++ b/src/controls/Tab.qml @@ -45,14 +45,24 @@ import QtQuick 2.0 \inqmlmodule QtQuick.Controls 1.0 \ingroup viewaddons \brief Tab represents the content of a tab in a TabView. + + A Tab item inherits from Loader and provides a similar + api. */ -Item { - id:tab +Loader { + id: tab anchors.fill: parent /*! This property holds the title of the tab. */ property string title - Accessible.role: Accessible.PageTab + active: false + visible: false + + /*! \internal */ + onVisibleChanged: if (visible) active = true + + /*! \internal */ + default property alias component: tab.sourceComponent } |
