workaround for not having qtquick 1.1
use paintedHeight instead of lineCount
This commit is contained in:
parent
a5878df083
commit
7da0aaecfd
@ -24,7 +24,8 @@ Text {
|
|||||||
id: root
|
id: root
|
||||||
|
|
||||||
height: theme.defaultFont.mSize.height*1.8
|
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.capitalization: theme.defaultFont.capitalization
|
||||||
font.family: theme.defaultFont.family
|
font.family: theme.defaultFont.family
|
||||||
|
Loading…
x
Reference in New Issue
Block a user