summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/ThemeTest.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-29 13:11:10 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-29 13:11:10 -0800
commitbb1803986afed7d1f626f941417acae6b3e51830 (patch)
tree25be40eb35434ea5b5fa4d0a3d64e1c65438bcbb /qt-mobile/qml/ThemeTest.qml
parent82d97093575d077f2c3703ad3d58124dcc127e27 (diff)
parent32219f127634b7783b3967d94e35faeff36b51ef (diff)
downloadsubsurface-bb1803986afed7d1f626f941417acae6b3e51830.tar.gz
Merge branch 'mobilecomponents' of github.com:sebasje/subsurface
Diffstat (limited to 'qt-mobile/qml/ThemeTest.qml')
-rw-r--r--qt-mobile/qml/ThemeTest.qml33
1 files changed, 17 insertions, 16 deletions
diff --git a/qt-mobile/qml/ThemeTest.qml b/qt-mobile/qml/ThemeTest.qml
index 7452acc1b..b65bc9eef 100644
--- a/qt-mobile/qml/ThemeTest.qml
+++ b/qt-mobile/qml/ThemeTest.qml
@@ -1,11 +1,12 @@
import QtQuick 2.5
import QtQuick.Layouts 1.1
+import org.kde.plasma.mobilecomponents 0.2 as MobileComponents
GridLayout {
id: themetest
columns: 2
- Label {
+ MobileComponents.Label {
Layout.columnSpan: 2
Layout.fillHeight: true
text: "Theme Information"
@@ -15,39 +16,39 @@ GridLayout {
id: fm
}
- Label {
- text: "units.gridUnit:"
+ MobileComponents.Label {
+ text: "MobileComponents.Units.gridUnit:"
}
- Label {
- text: units.gridUnit
+ MobileComponents.Label {
+ text: MobileComponents.Units.gridUnit
}
- Label {
- text: "units.devicePixelRatio:"
+ MobileComponents.Label {
+ text: "MobileComponents.Units.devicePixelRatio:"
}
- Label {
- text: units.devicePixelRatio
+ MobileComponents.Label {
+ text: MobileComponents.Units.devicePixelRatio
}
- Label {
+ MobileComponents.Label {
text: "FontMetrics pointSize:"
}
- Label {
+ MobileComponents.Label {
text: fm.font.pointSize
}
- Label {
+ MobileComponents.Label {
text: "FontMetrics pixelSize:"
}
- Label {
+ MobileComponents.Label {
text: fm.height
}
- Label {
+ MobileComponents.Label {
text: "hand-computed devicePixelRatio:"
}
- Label {
+ MobileComponents.Label {
text: fm.height / fm.font.pointSize
}
@@ -65,7 +66,7 @@ GridLayout {
text: font.pointSize
}
- Label {
+ MobileComponents.Label {
Layout.columnSpan: 2
Layout.fillHeight: true
}