made the leftdock follow the presentation arrows

This commit is contained in:
Chris Cochrun 2022-08-24 11:47:04 -05:00
parent 2f0ce840be
commit af6f5678e4
3 changed files with 10 additions and 1 deletions

View file

@ -8,6 +8,7 @@ import QtMultimedia 5.15
/* import QtAudioEngine 1.15 */
import org.kde.kirigami 2.13 as Kirigami
import "./" as Presenter
import org.presenter 1.0
ColumnLayout {
id: root
@ -292,4 +293,8 @@ ColumnLayout {
serviceItemModel.addItem(name, type, background,
backgroundType, lyrics);
}
function changeItem() {
serviceItemList.currentIndex = currentServiceItem;
}
}

View file

@ -168,6 +168,7 @@ Item {
if (changed) {
currentServiceItem++;
loadVideo();
leftDock.changeItem();
}
}
@ -187,6 +188,7 @@ Item {
if (changed) {
currentServiceItem--;
loadVideo();
leftDock.changeItem();
}
}