summaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/ThemeTest.qml53
1 files changed, 48 insertions, 5 deletions
diff --git a/qt-mobile/ThemeTest.qml b/qt-mobile/ThemeTest.qml
index 55c15ed77..c848f1aa8 100644
--- a/qt-mobile/ThemeTest.qml
+++ b/qt-mobile/ThemeTest.qml
@@ -1,15 +1,58 @@
import QtQuick 2.5
import QtQuick.Layouts 1.1
-ColumnLayout {
+GridLayout {
id: themetest
+ columns: 2
- Text {
- text: "units.gridUnit is: " + units.gridUnit
+ Label {
+ Layout.columnSpan: 2
+ Layout.fillHeight: true
+ text: "Theme Information"
}
- Text {
- text: "units.devicePixelRatio: " + units.devicePixelRatio
+ FontMetrics {
+ id: fm
+ }
+
+ Label {
+ text: "units.gridUnit:"
+ }
+ Label {
+ text: units.gridUnit
+ }
+
+ Label {
+ text: "units.devicePixelRatio:"
+ }
+ Label {
+ text: units.devicePixelRatio
+ }
+
+ Label {
+ text: "FontMetrics pointSize:"
+ }
+ Label {
+ text: fm.font.pointSize
+ }
+
+ Label {
+ text: "FontMetrics pixelSize:"
+ }
+ Label {
+ text: fm.height
+
+ }
+
+ Label {
+ text: "hand-computed devicePixelRatio:"
+ }
+ Label {
+ text: fm.height / fm.font.pointSize
+ }
+ Item {
+ Layout.columnSpan: 2
+ Layout.fillHeight: true
}
}