Skip to content

Commit

Permalink
Avoid (some more) font pointSize warnings on startup
Browse files Browse the repository at this point in the history
Still three instances left. Should be a Qt bug by creating warnings
before all the properties are evaluated, though.
  • Loading branch information
pvuorela committed May 9, 2016
1 parent 539f8fb commit 9a8b61b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qml/Button.qml
Expand Up @@ -61,7 +61,8 @@ Rectangle {
text: button.text
color: button.enabled ? button.textColor : "#606060"
anchors.centerIn: parent
font.pointSize: window.uiFontSize
// avoid warnings on startup by protection against 0 size
font.pointSize: window.uiFontSize > 0 ? window.uiFontSize : 12
}

MouseArea {
Expand Down

0 comments on commit 9a8b61b

Please sign in to comment.