QML UI: add missing id line in our button

The missing id line in our own button generates an error in log and makes the buttons to fat.

Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
Joakim Bygdell 2017-07-25 21:49:18 +02:00 committed by Dirk Hohndel
parent 25fd8c1727
commit 1ebd7dd430

View file

@ -13,6 +13,7 @@ Button {
height: buttonText.height * 2 height: buttonText.height * 2
} }
contentItem: Text { contentItem: Text {
id: buttonText
text: root.text text: root.text
anchors.centerIn: buttonBackground anchors.centerIn: buttonBackground
color: root.pressed ? subsurfaceTheme.darkerPrimaryTextColor :subsurfaceTheme.primaryTextColor color: root.pressed ? subsurfaceTheme.darkerPrimaryTextColor :subsurfaceTheme.primaryTextColor