diff options
| author | J-P Nurmi <jpnurmi@digia.com> | 2014-02-24 15:05:15 +0100 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-25 14:33:17 +0100 |
| commit | ff4162dea7d8e53a437f3282e237a50b6f1893a6 (patch) | |
| tree | 42c45a884ccc282fe3278ee733ac8c2cddf79be0 /src | |
| parent | ef965e6e64511ca06831071f65968edc7292c253 (diff) | |
Add styleData.totalWidth for TabViewStyle::tab
[ChangeLog][QtQuickControls][Styles] Added styleData.totalWidth
property for TabViewStyle::tab component.
Task-number: QTBUG-37021
Change-Id: I76c29d132602926d9dacf690b09f556292359bf6
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/controls/Private/TabBar.qml | 1 | ||||
| -rw-r--r-- | src/controls/Styles/Base/TabViewStyle.qml | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/controls/Private/TabBar.qml b/src/controls/Private/TabBar.qml index 06bcc2bef..6dc98d1a9 100644 --- a/src/controls/Private/TabBar.qml +++ b/src/controls/Private/TabBar.qml @@ -222,6 +222,7 @@ FocusScope { readonly property alias enabled: tabitem.enabled readonly property bool activeFocus: tabbar.activeFocus readonly property real availableWidth: tabbar.availableWidth + readonly property real totalWidth: tabrow.contentWidth } sourceComponent: loader.item ? loader.item.tab : null diff --git a/src/controls/Styles/Base/TabViewStyle.qml b/src/controls/Styles/Base/TabViewStyle.qml index ce00da5f3..448a2feb5 100644 --- a/src/controls/Styles/Base/TabViewStyle.qml +++ b/src/controls/Styles/Base/TabViewStyle.qml @@ -132,6 +132,7 @@ Style { \row \li readonly property bool \b styleData.enabled \li The tab is enabled. (since QtQuick.Controls.Styles 1.2) \row \li readonly property bool \b styleData.activeFocus \li The tab button has keyboard focus. \row \li readonly property bool \b styleData.availableWidth \li The available width for the tabs. + \row \li readonly property bool \b styleData.totalWidth \li The total width of the tabs. (since QtQuick.Controls.Styles 1.2) \endtable */ property Component tab: Item { |
