From 6b932130a2805f93311de47221ccd52a2071ed42 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Fri, 21 May 2021 21:26:46 +0200 Subject: [PATCH] Revert "Fix Label having non-integer sizes" It messes with QtQuick Layouts in various ways and experience from PlasmaComponents 2 has shown that giving `Label` any kind of explicit size is just asking for trouble. This reverts commit a4e4156a4714199498cdec0c1ab2415f0040dc7e. --- src/declarativeimports/plasmacomponents3/Label.qml | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/declarativeimports/plasmacomponents3/Label.qml b/src/declarativeimports/plasmacomponents3/Label.qml index b54312204..4f0f506df 100644 --- a/src/declarativeimports/plasmacomponents3/Label.qml +++ b/src/declarativeimports/plasmacomponents3/Label.qml @@ -12,9 +12,6 @@ import org.kde.plasma.core 2.0 as PlasmaCore T.Label { id: control - height: Math.ceil(implicitHeight) - width: Math.ceil(implicitWidth) - verticalAlignment: lineCount > 1 ? Text.AlignTop : Text.AlignVCenter activeFocusOnTab: false