diff --git a/application/qml/components/PopupMenuNotes.qml b/application/qml/components/PopupMenuNotes.qml index 89003e6f043d841ed509796c82617c65e0ce3cf4..e8e18276ff64db76d8306f7f202e8d14b4d467f9 100644 --- a/application/qml/components/PopupMenuNotes.qml +++ b/application/qml/components/PopupMenuNotes.qml @@ -19,6 +19,8 @@ PopupMenu { signal drawNote() signal highlightText() + signal goToPage(int pageIndex) + function openPopup(d) { d.selected = true delegate = d @@ -27,6 +29,7 @@ PopupMenu { onOpenedChanged: delegate.selected = opened onNoteActivate: close() + onGoToPage: close() preferredHeight: Theme.itemSizeSmall * 7 @@ -113,6 +116,7 @@ PopupMenu { property int viewPageIndex: ListView.view.viewPageIndex onClicked: noteActivate(model.content, model.author, viewPageIndex, model.id, model.color, model.noteType) + onPressAndHold: goToPage(viewPageIndex) width: parent.width - 2 * Theme.paddingMedium anchors.horizontalCenter: parent.horizontalCenter diff --git a/application/qml/pages/ContentPage.qml b/application/qml/pages/ContentPage.qml index afb6fe437392f73527c5c4a6215b78b3b654a1ac..2254a77e9eba1ca43ca7a65b94daf100b918ff5a 100644 --- a/application/qml/pages/ContentPage.qml +++ b/application/qml/pages/ContentPage.qml @@ -621,6 +621,10 @@ Page { root.state = root.statesNames[6]; } + onGoToPage: { + pdfPagesView.goToPage(pageIndex) + } + pagesWithNotesModel: PageWithNotesSortModel { filterParameter: PageWithNotesSortModel.Count } diff --git a/application/qml/pages/NotePage.qml b/application/qml/pages/NotePage.qml index 5959206e59a03d6037a283f24a4b568bca950e04..38b852420963e4c9bf29dabc8ac5342121a338d0 100644 --- a/application/qml/pages/NotePage.qml +++ b/application/qml/pages/NotePage.qml @@ -32,6 +32,13 @@ Page { AppBarSpacer {} + AppBarButton { + icon.source: "image://theme/icon-m-forward" + onClicked: { + pdfPagesView.goToPage(root.pageNumber - 1); + pageStack.pop(); + } + } AppBarButton { icon.source: "image://theme/icon-m-edit" visible: editable