summaryrefslogtreecommitdiffstats
path: root/qt-mobile/main.qml
diff options
context:
space:
mode:
authorGravatar Sebastian Kügler <sebas@kde.org>2015-11-06 21:52:30 +0000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-06 14:04:47 -0800
commit9dc8f13a0ab2f2c0f2804b2dcaf602c2964fdddb (patch)
treed50bb4680f7874fded34fdd8d3f5a2fc1c424d70 /qt-mobile/main.qml
parent74586d792230447384967fe1765e2ed562281e8a (diff)
downloadsubsurface-9dc8f13a0ab2f2c0f2804b2dcaf602c2964fdddb.tar.gz
Replace units.spacing with units.smallSpacing
In line with the new Units API. Signed-off-by: Sebastian Kügler <sebas@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/main.qml')
-rw-r--r--qt-mobile/main.qml9
1 files changed, 4 insertions, 5 deletions
diff --git a/qt-mobile/main.qml b/qt-mobile/main.qml
index e9cfb5b74..f45ab9b60 100644
--- a/qt-mobile/main.qml
+++ b/qt-mobile/main.qml
@@ -17,7 +17,6 @@ ApplicationWindow {
Theme.Units {
id: units
- property int spacing: Math.ceil(gridUnit / 3)
}
Theme.Theme {
@@ -94,16 +93,16 @@ ApplicationWindow {
Rectangle {
id: topPart
color: theme.accentColor
- Layout.minimumHeight: units.gridUnit * 2 + units.spacing * 2
+ Layout.minimumHeight: units.gridUnit * 2 + units.smallSpacing * 2
Layout.fillWidth: true
Layout.margins: 0
RowLayout {
anchors.bottom: topPart.bottom
- anchors.bottomMargin: units.spacing
+ anchors.bottomMargin: units.smallSpacing
anchors.left: topPart.left
- anchors.leftMargin: units.spacing
+ anchors.leftMargin: units.smallSpacing
anchors.right: topPart.right
- anchors.rightMargin: units.spacing
+ anchors.rightMargin: units.smallSpacing
Image {
source: "qrc:/qml/subsurface-mobile-icon.png"
Layout.maximumWidth: units.gridUnit * 2