workaround for not having qtquick 1.1

use paintedHeight instead of lineCount
This commit is contained in:
Marco Martin 2011-11-10 12:45:31 +01:00
parent a5878df083
commit 7da0aaecfd

View File

@ -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