brmbar v3 BarButton: Fix fontSize property

This commit is contained in:
Petr Baudis 2012-09-24 03:53:50 +02:00
parent 5ac08ac318
commit 9afd1788d0

View file

@ -9,7 +9,7 @@ Rectangle {
border.color: "#ffffff" border.color: "#ffffff"
property string text: "Button" property string text: "Button"
property int fontSize: 46 property int fontSize: 44
signal buttonClick signal buttonClick
onButtonClick: { /* Supplied by component user. */ } onButtonClick: { /* Supplied by component user. */ }
@ -18,7 +18,7 @@ Rectangle {
id: text1 id: text1
color: "#ffffff" color: "#ffffff"
text: parent.text text: parent.text
font.pointSize: 44 font.pointSize: parent.fontSize
scale: if (!mousearea1.pressed) { 1 } else { 0.95 } scale: if (!mousearea1.pressed) { 1 } else { 0.95 }
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
anchors.fill: parent anchors.fill: parent