port these as well to mobilecomponents

Signed-off-by: Sebastian Kügler <sebas@kde.org>
This commit is contained in:
Sebastian Kügler 2015-11-29 17:30:41 +01:00
parent 2668da3f60
commit 3c1d7c0074
3 changed files with 51 additions and 52 deletions

View file

@ -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
}