making previewer an active way to change slides

This commit is contained in:
Chris Cochrun 2022-10-01 07:19:25 -05:00
parent dd58cb3b6b
commit 91bb08fbf2

View file

@ -166,7 +166,12 @@ Item {
id: previewHighlight id: previewHighlight
implicitWidth: 210 implicitWidth: 210
implicitHeight: width / 16 * 9 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 { Presenter.Slide {
id: previewSlideItem id: previewSlideItem
@ -183,6 +188,7 @@ Item {
pdfIndex: 0 pdfIndex: 0
preview: true preview: true
editMode: true editMode: true
} }
Controls.Label { Controls.Label {
@ -195,6 +201,14 @@ Item {
text: name text: name
/* font.family: "Quicksand Bold" */ /* font.family: "Quicksand Bold" */
} }
MouseArea {
id: previewerMouse
anchors.fill: parent
onClicked: changeServiceItem(index)
cursorShape: Qt.PointingHandCursor
}
} }
Kirigami.WheelHandler { Kirigami.WheelHandler {
id: wheelHandler id: wheelHandler