summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/mobilecomponents/PageRow.qml
diff options
context:
space:
mode:
authorGravatar Sebastian Kügler <sebas@kde.org>2016-01-06 04:40:33 +0100
committerGravatar Sebastian Kügler <sebas@kde.org>2016-01-06 04:41:41 +0100
commit548d6fc956061cd1edb177447cdf07104d92b9c7 (patch)
treee8263e890f0a3294cc5b013fa4e5b61ab46ab037 /qt-mobile/qml/mobilecomponents/PageRow.qml
parent8664925e20f4f4b700ace48765477a9ca3fb36dd (diff)
downloadsubsurface-548d6fc956061cd1edb177447cdf07104d92b9c7.tar.gz
sync with mobilecomponents a85365111 + patches
This is the latest state of the upstream art from Plasma, plus our patches to disable the gamma effect on the icon, and the drawer removed. Signed-off-by: Sebastian Kügler <sebas@kde.org>
Diffstat (limited to 'qt-mobile/qml/mobilecomponents/PageRow.qml')
-rw-r--r--qt-mobile/qml/mobilecomponents/PageRow.qml7
1 files changed, 5 insertions, 2 deletions
diff --git a/qt-mobile/qml/mobilecomponents/PageRow.qml b/qt-mobile/qml/mobilecomponents/PageRow.qml
index ab0e9a5ed..b69b39c8f 100644
--- a/qt-mobile/qml/mobilecomponents/PageRow.qml
+++ b/qt-mobile/qml/mobilecomponents/PageRow.qml
@@ -56,7 +56,7 @@ Item {
property int depth: Engine.getDepth()
property Item currentPage: null
- property Item lastVisiblePage
+ property Item lastVisiblePage: currentPage
property ToolBar toolBar
property variant initialPage
//A column is wide enough for 30 characters
@@ -154,7 +154,10 @@ Item {
return;
}
- actualRoot.lastVisiblePage = root.children[Math.floor((mainFlickable.contentX + mainFlickable.width - 1)/columnWidth)].page
+ actualRoot.lastVisiblePage = root.children[Math.floor((mainFlickable.contentX + mainFlickable.width - 1)/columnWidth)].page;
+ if (!actualRoot.lastVisiblePage) {
+ actualRoot.lastVisiblePage = actualRoot.currentPage;
+ }
}
}
}