be sure to H align the text if our icon is valid in a Button

This commit is contained in:
Shaun Reich 2012-02-19 00:08:32 -05:00
parent 2560636dba
commit d5bf439e5b

View File

@ -250,7 +250,7 @@ Item {
font.weight: theme.defaultFont.weight font.weight: theme.defaultFont.weight
font.wordSpacing: theme.defaultFont.wordSpacing font.wordSpacing: theme.defaultFont.wordSpacing
color: theme.buttonTextColor color: theme.buttonTextColor
horizontalAlignment: icon.valid ? Text.AlignLeft : Text.AlignHCenter horizontalAlignment: icon.valid ? Text.AlignHCenter : Text.AlignLeft
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
} }
} }