vertical centering only if there is more than one line

This commit is contained in:
Marco Martin 2011-11-09 23:25:31 +01:00
parent 0c2995f8e8
commit e4c44a117e

View File

@ -24,7 +24,7 @@ Text {
id: root
height: theme.defaultFont.mSize.height*1.8
verticalAlignment: Text.AlignVCenter
verticalAlignment: lineCount > 1 ? Text.AlignTop : Text.AlignVCenter
font.capitalization: theme.defaultFont.capitalization
font.family: theme.defaultFont.family