summaryrefslogtreecommitdiffstats
path: root/qt-mobile/theme/Units.qml
diff options
context:
space:
mode:
authorGravatar Sebastian Kügler <sebas@kde.org>2015-10-09 05:04:44 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-09 12:51:54 -0700
commitac6b267d404f3d3675312b868a74f00c18bab3b2 (patch)
treefc5f6ec0bdd22b0c4657fe34a42c4f6438c81dc7 /qt-mobile/theme/Units.qml
parent5195fcf919a1b34410fbb99498571752137adce1 (diff)
downloadsubsurface-ac6b267d404f3d3675312b868a74f00c18bab3b2.tar.gz
QML-UI: gridUnit is now dpi-corrected
Signed-off-by: Sebastian Kügler <sebas@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/theme/Units.qml')
-rw-r--r--qt-mobile/theme/Units.qml9
1 files changed, 7 insertions, 2 deletions
diff --git a/qt-mobile/theme/Units.qml b/qt-mobile/theme/Units.qml
index 6b477b089..d4b4aa774 100644
--- a/qt-mobile/theme/Units.qml
+++ b/qt-mobile/theme/Units.qml
@@ -1,6 +1,11 @@
import QtQuick 2.3
-QtObject {
- property int gridUnit: 24
+Item {
+ property int gridUnit: unitsM.paintedHeight
property int spacing: gridUnit / 3
+
+ Text {
+ id: unitsM
+ text: "M"
+ }
} \ No newline at end of file