From dc424465d83b414b206ea7ff4577699f76e123f5 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 17 Aug 2012 15:33:46 +0200 Subject: [PATCH] proper size hints for tab buttons --- declarativeimports/plasmacomponents/qml/TabButton.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/declarativeimports/plasmacomponents/qml/TabButton.qml b/declarativeimports/plasmacomponents/qml/TabButton.qml index 25fdef3e6..75c0b9fd2 100644 --- a/declarativeimports/plasmacomponents/qml/TabButton.qml +++ b/declarativeimports/plasmacomponents/qml/TabButton.qml @@ -91,8 +91,8 @@ Item { signal clicked - implicitWidth: label.paintedWidth + (internal.portrait ? 0 : (iconSource != null ? 16 : 0)) - implicitHeight: label.paintedHeight + (internal.portrait ? (iconSource != null ? 16 : 0) : 0) + implicitWidth: label.implicitWidth + (internal.portrait ? 0 : (iconSource != null ? 16 : 0)) + implicitHeight: label.implicitHeight + (internal.portrait ? (iconSource != null ? 16 : 0) : 0) opacity: enabled ? 1 : 0.6 //long notation to not make it overwritten by implementations