summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Martin <notmart@gmail.com>2016-05-13 15:41:35 (GMT)
committerMarco Martin <notmart@gmail.com>2016-05-13 15:41:35 (GMT)
commit3c74f1acb0a59b0abc985c9390fad12d0bbd271f (patch)
treef453cfc1ee299ad26237714f0eb1197762fc0917
parent1d5853c2cb15dffd045996df83eb10e0815dfec4 (diff)
minor layout fixes
-rw-r--r--mobile/app/package/contents/ui/Documents.qml2
-rw-r--r--mobile/app/package/contents/ui/OkularDrawer.qml11
-rw-r--r--mobile/app/package/contents/ui/Thumbnails.qml2
-rw-r--r--mobile/app/package/contents/ui/ThumbnailsBase.qml2
4 files changed, 4 insertions, 13 deletions
diff --git a/mobile/app/package/contents/ui/Documents.qml b/mobile/app/package/contents/ui/Documents.qml
index f0e4279..3f5b402 100644
--- a/mobile/app/package/contents/ui/Documents.qml
+++ b/mobile/app/package/contents/ui/Documents.qml
@@ -80,7 +80,7 @@ Item {
onClicked: {
documentItem.path = model.filePath;
globalDrawer.opened = false;
- mainTabBar.currentTab = thumbnailsButton;
+ applicationWindow().controlsVisible = false;
}
}
}
diff --git a/mobile/app/package/contents/ui/OkularDrawer.qml b/mobile/app/package/contents/ui/OkularDrawer.qml
index bb2a206..770353d 100644
--- a/mobile/app/package/contents/ui/OkularDrawer.qml
+++ b/mobile/app/package/contents/ui/OkularDrawer.qml
@@ -28,7 +28,7 @@ Kirigami.OverlayDrawer {
edge: Qt.RightEdge
contentItem: Item {
id: browserFrame
- implicitWidth: Kirigami.Units.gridUnit * 25
+ implicitWidth: Kirigami.Units.gridUnit * 45
implicitHeight: implicitWidth
state: "Hidden"
@@ -44,13 +44,8 @@ Kirigami.OverlayDrawer {
}
Connections {
- id: scrollConnection
- property int oldContentY:0
- target: pageStack.currentItem
-
- onContentYChanged: {
- scrollConnection.oldContentY = pageStack.currentItem.contentY
- }
+ target: documentItem
+ onPathChanged: mainTabBar.currentTab = thumbnailsButton;
}
ToolBar {
diff --git a/mobile/app/package/contents/ui/Thumbnails.qml b/mobile/app/package/contents/ui/Thumbnails.qml
index ab443ef..6e6936c 100644
--- a/mobile/app/package/contents/ui/Thumbnails.qml
+++ b/mobile/app/package/contents/ui/Thumbnails.qml
@@ -25,7 +25,6 @@ ThumbnailsBase {
id: root
model: documentItem.matchingPages
- anchors.fill: parent
ToolBar {
id: toolBarContent
width: root.width
@@ -38,7 +37,6 @@ ThumbnailsBase {
if (text.length > 2) {
documentItem.searchText(text);
} else {
- view.currentIndex = pageArea.delegate.pageNumber;
documentItem.resetSearch();
}
}
diff --git a/mobile/app/package/contents/ui/ThumbnailsBase.qml b/mobile/app/package/contents/ui/ThumbnailsBase.qml
index c276e3f..28608f4 100644
--- a/mobile/app/package/contents/ui/ThumbnailsBase.qml
+++ b/mobile/app/package/contents/ui/ThumbnailsBase.qml
@@ -34,8 +34,6 @@ Kirigami.Page {
signal pageClicked(int pageNumber)
property Item view: resultsGrid
- anchors.fill: parent
-
ScrollView {
anchors {
fill: parent