more bugfixes

This commit is contained in:
Chris Cochrun 2025-07-28 07:13:00 -05:00
parent ba3c9dc183
commit 5ba657a7d4
7 changed files with 33 additions and 27 deletions

View file

@ -35,7 +35,7 @@ Item {
padding: 10
onEditingFinished: updateTitle(text);
background: Presenter.TextBackground {
control: fontBox
control: parent
}
}
@ -44,15 +44,15 @@ Item {
implicitWidth: 100
hoverEnabled: true
background: Presenter.TextBackground {
control: fontBox
control: parent
}
indicator: Kirigami.Icon {
anchors {right: parent.right
verticalCenter: parent.verticalCenter
rightMargin: 2}
source: "arrow-down"
rotation: fontBox.down ? 180 : 0
color: fontBox.pressed ? Kirigami.Theme.focusColor : Kirigami.Theme.textColor
rotation: parent.down ? 180 : 0
color: parent.pressed ? Kirigami.Theme.focusColor : Kirigami.Theme.textColor
Behavior on rotation {
NumberAnimation {
@ -205,7 +205,7 @@ Item {
}
function changePresentation(index) {
let pres = presProxyModel.presentationModel.getItem(index);
let pres = presentationModel.getItem(index);
root.presentation = pres;
console.log(pres.filePath.toString());
updatePageCount(presentationPreview.frameCount);
@ -215,7 +215,7 @@ Item {
function updateTitle(text) {
changeTitle(text, false);
presProxyModel.presentationModel.updateTitle(presentation.id, text);
presentationModel.updateTitle(presentation.id, text);
showPassiveNotification(presentation.title);
}
@ -230,6 +230,6 @@ Item {
if (curPageCount === presentation.pageCount)
return;
presentation.pageCount = pageCount;
presProxyModel.presentationModel.updatePageCount(presentation.id, pageCount);
presentationModel.updatePageCount(presentation.id, pageCount);
}
}