From 5f5654f8fdaf67b24126d3dee001fab1cdddec88 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Wed, 28 Oct 2015 11:42:18 +0100 Subject: 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 --- src/imports/controls/TabButton.qml | 4 ++-- 1 file 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 -- cgit v1.2.3