From 91bb08fbf2a77ae075bc69547f66fe609a6fa54e Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Sat, 1 Oct 2022 07:19:25 -0500 Subject: [PATCH] making previewer an active way to change slides --- src/qml/presenter/Presentation.qml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/qml/presenter/Presentation.qml b/src/qml/presenter/Presentation.qml index 20738be..6e4a4fb 100644 --- a/src/qml/presenter/Presentation.qml +++ b/src/qml/presenter/Presentation.qml @@ -166,7 +166,12 @@ Item { id: previewHighlight implicitWidth: 210 implicitHeight: width / 16 * 9 - color: active ? Kirigami.Theme.highlightColor : Kirigami.Theme.backgroundColor + color: { + if (active || previewerMouse.containsMouse) + Kirigami.Theme.highlightColor + else + Kirigami.Theme.backgroundColor + } Presenter.Slide { id: previewSlideItem @@ -183,6 +188,7 @@ Item { pdfIndex: 0 preview: true editMode: true + } Controls.Label { @@ -195,6 +201,14 @@ Item { text: name /* font.family: "Quicksand Bold" */ } + + MouseArea { + id: previewerMouse + anchors.fill: parent + onClicked: changeServiceItem(index) + cursorShape: Qt.PointingHandCursor + } + } Kirigami.WheelHandler { id: wheelHandler