diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2016-01-27 12:07:50 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2016-01-27 14:18:04 +0000 |
commit | 67c4017054baf394062ab4f869d9ca9d299d3354 (patch) | |
tree | 378d13bbc1abb7bde11dc1160d9f89130bc9a958 /examples/quick/demos/stocqt/content/StockSettingsPanel.qml | |
parent | afbfdcff3b3cd14f16736b7c84e04fe9ad61ef8d (diff) |
stocqt example: Choose font depending on platform.
The example used the font "Open Sans" which is only available
on UNIX platforms and causes it to look baroque on WinRT.
Add a settings file specifying the font and override via file
selector.
Change-Id: I1a9284d928ac57289d75b5fb9477849ac518787b
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'examples/quick/demos/stocqt/content/StockSettingsPanel.qml')
-rw-r--r-- | examples/quick/demos/stocqt/content/StockSettingsPanel.qml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/quick/demos/stocqt/content/StockSettingsPanel.qml b/examples/quick/demos/stocqt/content/StockSettingsPanel.qml index 7d71355b31..0c34e453de 100644 --- a/examples/quick/demos/stocqt/content/StockSettingsPanel.qml +++ b/examples/quick/demos/stocqt/content/StockSettingsPanel.qml @@ -39,6 +39,7 @@ ****************************************************************************/ import QtQuick 2.0 +import "." Rectangle { id: root @@ -62,7 +63,7 @@ Rectangle { anchors.left: root.left anchors.top: root.top color: "#000000" - font.family: "Open Sans" + font.family: Settings.fontFamily font.pointSize: 19 text: "Open" } @@ -73,7 +74,7 @@ Rectangle { anchors.top: openText.bottom anchors.topMargin: 10 color: "#000000" - font.family: "Open Sans" + font.family: Settings.fontFamily font.pointSize: 19 text: "Close" } @@ -84,7 +85,7 @@ Rectangle { anchors.top: closeText.bottom anchors.topMargin: 10 color: "#000000" - font.family: "Open Sans" + font.family: Settings.fontFamily font.pointSize: 19 text: "High" } @@ -95,7 +96,7 @@ Rectangle { anchors.top: highText.bottom anchors.topMargin: 10 color: "#000000" - font.family: "Open Sans" + font.family: Settings.fontFamily font.pointSize: 19 text: "Low" } |