aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/ThemeTest.qml
diff options
context:
space:
mode:
authorGravatar Sebastian Kügler <sebas@kde.org>2015-11-29 17:30:41 +0100
committerGravatar Sebastian Kügler <sebas@kde.org>2015-11-29 17:30:41 +0100
commit3c1d7c0074d1165030cc3834fc09ba326dfd1b7b (patch)
tree6eb448c86577f83f488c772d2862af813786ce11 /qt-mobile/qml/ThemeTest.qml
parent2668da3f60d0dc28d1777c1d6cf67e1ee8f88447 (diff)
downloadsubsurface-3c1d7c0074d1165030cc3834fc09ba326dfd1b7b.tar.gz
port these as well to mobilecomponents
Signed-off-by: Sebastian Kügler <sebas@kde.org>
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
}