From 7da0aaecfdf860b580daf71426ab61e2998c5043 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 10 Nov 2011 12:45:31 +0100 Subject: [PATCH] workaround for not having qtquick 1.1 use paintedHeight instead of lineCount --- declarativeimports/plasmacomponents/qml/Label.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/declarativeimports/plasmacomponents/qml/Label.qml b/declarativeimports/plasmacomponents/qml/Label.qml index dca9f70bb..b227d9617 100644 --- a/declarativeimports/plasmacomponents/qml/Label.qml +++ b/declarativeimports/plasmacomponents/qml/Label.qml @@ -24,7 +24,8 @@ Text { id: root height: theme.defaultFont.mSize.height*1.8 - verticalAlignment: lineCount > 1 ? Text.AlignTop : Text.AlignVCenter + //FIXME: wait to rely on 1.1 for lineCount > 1 + verticalAlignment: paintedHeight > theme.defaultFont.mSize.height*1.5 ? Text.AlignTop : Text.AlignVCenter font.capitalization: theme.defaultFont.capitalization font.family: theme.defaultFont.family