brmbarv3: Convert font sizes from points to pixels to be DPI-independent

This commit is contained in:
Petr Baudis 2012-10-16 17:45:21 +02:00
parent 4d72dff187
commit e55f5cfa5e
15 changed files with 59 additions and 59 deletions

View file

@ -9,7 +9,7 @@ Rectangle {
border.color: btnColor
property string text: "Button"
property int fontSize: 44
property int fontSize: 60
property variant btnColor: "#ffffff"
signal buttonClick
@ -19,7 +19,7 @@ Rectangle {
id: text1
text: parent.text
color: parent.btnColor
font.pointSize: parent.fontSize
font.pixelSize: parent.fontSize
scale: if (!mousearea1.pressed) { 1 } else { 0.95 }
horizontalAlignment: Text.AlignHCenter
anchors.fill: parent