summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Martin <notmart@gmail.com>2015-09-23 10:59:57 (GMT)
committerMarco Martin <notmart@gmail.com>2015-09-23 10:59:57 (GMT)
commitc8db5970524eb9676e6f87a1dcc030ec35294e17 (patch)
tree090afbd684c3cc55c982bb0649d3e3b177cd42cc
parent883a55f92500f20dbd68d0f2b978cfa9f3623a95 (diff)
tiny progressbar at bottom of the screen
-rw-r--r--mobile/app/package/contents/ui/Browser.qml1
-rw-r--r--mobile/app/package/contents/ui/main.qml10
2 files changed, 11 insertions, 0 deletions
diff --git a/mobile/app/package/contents/ui/Browser.qml b/mobile/app/package/contents/ui/Browser.qml
index 5022308..5ebf84b 100644
--- a/mobile/app/package/contents/ui/Browser.qml
+++ b/mobile/app/package/contents/ui/Browser.qml
@@ -156,6 +156,7 @@ MobileComponents.SplitDrawer {
PlasmaComponents.ScrollBar {
flickableItem: pageArea.delegate.flickable
orientation: Qt.Horizontal
+ visible: pageArea.delegate.width > pageArea.width
anchors {
left: pageArea.left
right: pageArea.right
diff --git a/mobile/app/package/contents/ui/main.qml b/mobile/app/package/contents/ui/main.qml
index ecd0bb0..9d65b31 100644
--- a/mobile/app/package/contents/ui/main.qml
+++ b/mobile/app/package/contents/ui/main.qml
@@ -84,6 +84,16 @@ ApplicationWindow {
bookmarkButton.checked = mainStack.currentPage.bookmarked
}
}
+ PlasmaComponents.ProgressBar {
+ id: bar
+ anchors {
+ left: parent.left
+ right: parent.right
+ bottom: parent.top
+ }
+ height: units.smallSpacing
+ value: documentItem.pageCount != 0 ? (documentItem.currentPage / documentItem.pageCount) : 0
+ }
}
Okular.DocumentItem {