diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-10-28 11:42:18 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-10-29 06:55:48 +0000 |
commit | 5f5654f8fdaf67b24126d3dee001fab1cdddec88 (patch) | |
tree | 3ff8e06d4dace2e3cc0d7334aaf674b9cc386a67 /src/imports/controls/TabButton.qml | |
parent | bbb113b0e3a82325ba5c1b79061cae757db7468d (diff) |
Fix mis-aligned text in tabs
More like a workaround, but this development style is not worth
spending too much effort on right now...
Change-Id: I4287dd4bc48a2db08347cf7bd44727b4eadb9935
Task-number: QTBUG-48718
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/TabButton.qml')
-rw-r--r-- | src/imports/controls/TabButton.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/TabButton.qml b/src/imports/controls/TabButton.qml index 8bd05114..33e0911f 100644 --- a/src/imports/controls/TabButton.qml +++ b/src/imports/controls/TabButton.qml @@ -42,9 +42,9 @@ T.TabButton { id: control implicitWidth: Math.max(background ? background.implicitWidth : 0, - label ? label.implicitWidth + leftPadding + rightPadding : 0) + label ? label.contentWidth + leftPadding + rightPadding : 0) implicitHeight: Math.max(background ? background.implicitHeight : 0, - label ? label.implicitHeight + topPadding + bottomPadding : 0) + label ? label.contentHeight + topPadding + bottomPadding : 0) padding: 6 |