summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatja Marttila <katja.marttila@theqtcompany.com>2015-12-16 12:53:14 +0200
committerKatja Marttila <katja.marttila@theqtcompany.com>2015-12-18 06:56:50 +0000
commit43b42cb70b1555ee5baa0666b4fa22bf8f2fae48 (patch)
treed0562261133d0d20170d48484633da348a07d2c8
parent33fb04a584587211b7f590f2087653e6c09c6c1f (diff)
Add space between items in PathView
Change-Id: Ib159d594585239338f95559363bb5122875810ec Reviewed-by: Kalle Viironen <kalle.viironen@theqtcompany.com>
-rw-r--r--qml/LaunchScreen.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/qml/LaunchScreen.qml b/qml/LaunchScreen.qml
index 096914b..b0d2330 100644
--- a/qml/LaunchScreen.qml
+++ b/qml/LaunchScreen.qml
@@ -23,6 +23,7 @@ Item {
property real size: Math.min(root.width, root.height);
property int itemsPerScreen: 2
+ property int offset: 10
PathView {
id: list
@@ -42,8 +43,8 @@ Item {
currentIndex: -1
path: Path {
- startX:-list.cellWidth; startY: list.y + list.cellHeight/2
- PathLine{x: list.cellWidth*list.count - list.cellWidth; y: list.y + list.cellHeight/2}
+ startX: -list.cellWidth - offset*2; startY: list.y + list.cellHeight/2
+ PathLine{ x: (list.cellWidth + offset)*list.count - list.cellWidth - offset*2; y: list.y + list.cellHeight/2}
}
highlightMoveDuration: 700