diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-09-25 22:48:17 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-09-30 12:17:06 +0000 |
commit | 8ad7b8c20cd203cefd49d1d08f4614dd01ccec87 (patch) | |
tree | c75abe4f63f2641ad951fa2ec4ae3f7bd6689ae3 /src | |
parent | b83dcfb9703ccb5a3dad91d49432a2bb4ceef438 (diff) |
TabBar: fix implicit size
Like many other controls, TabBar calculates its implicit size based
on the implicit sizes of its content and background items. Because of
QTBUG-35038, the default content item didn't have any implicit size
specified. Now that the binding loop issue has been fixed, we can
specify the missing implicit size for the content, so that TabBar
itself gets a sensible implicit size.
Change-Id: Iaedc20b57cf613066c3ca3fef34e42eed93a9a1c
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/imports/controls/TabBar.qml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/imports/controls/TabBar.qml b/src/imports/controls/TabBar.qml index 173cad37..e6124209 100644 --- a/src/imports/controls/TabBar.qml +++ b/src/imports/controls/TabBar.qml @@ -50,6 +50,9 @@ T.TabBar { //! [contentItem] contentItem: ListView { + implicitWidth: contentWidth + implicitHeight: contentHeight + model: control.contentModel currentIndex: control.currentIndex |