attempt at fixing bug with slides not activating with service item
This commit is contained in:
parent
4685c9eb70
commit
c6700907b1
5 changed files with 55 additions and 14 deletions
|
@ -174,7 +174,7 @@ Controls.Page {
|
|||
console.log("change-service-item: " + index);
|
||||
const item = ServiceItemC.getRust(index, ServiceItemModel);
|
||||
currentServiceItem = index;
|
||||
const slideId = SlideModel.findSlideIdFromServItm(index);
|
||||
const slideId = SlideMod.getSlideFromService(index);
|
||||
currentSlide = slideId;
|
||||
const slide = SlideModel.getItemRust(slideId, SlideMod);
|
||||
console.log("index grabbed: " + index);
|
||||
|
@ -187,7 +187,7 @@ Controls.Page {
|
|||
|
||||
ServiceItemModel.activate(index);
|
||||
console.log("%%%%%%%%%");
|
||||
console.log(slide);
|
||||
console.log(slideId);
|
||||
/* SlideObject.changeSlide(slide, slideId); */
|
||||
slideHelper.chngSlide(slide, slideId, SlideObject);
|
||||
console.log("%%%%%%%%%");
|
||||
|
|
|
@ -341,6 +341,15 @@ FocusScope {
|
|||
}
|
||||
}
|
||||
|
||||
/* Connections { */
|
||||
/* target: ServiceItemModel */
|
||||
/* function onActivateChanged(index) { */
|
||||
/* console.log("$$$$$$$$$$$$$$$$$$$$"); */
|
||||
/* const slide = SlideModel.getSlideFromService(index); */
|
||||
/* SlideMod.activate(slide); */
|
||||
/* } */
|
||||
/* } */
|
||||
|
||||
Timer {
|
||||
interval: 500
|
||||
running: false
|
||||
|
|
|
@ -11,6 +11,7 @@ Item {
|
|||
implicitHeight: Kirigami.Units.gridUnit * 6.5
|
||||
implicitWidth: Kirigami.Units.gridUnit * 9
|
||||
property bool showVidBG
|
||||
/* property var previewSlidesList: parent */
|
||||
/* Component.onCompleted: { */
|
||||
/* if (model.videoBackground != "") */
|
||||
/* SlideModel.thumbnailVideoRust(model.videoBackground, model.serviceItemId, index, SlideMod); */
|
||||
|
@ -89,6 +90,8 @@ Item {
|
|||
target: SlideMod
|
||||
function onActiveChanged() {
|
||||
if (active) {
|
||||
console.log("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
|
||||
console.log(index);
|
||||
previewSlidesList.currentIndex = index;
|
||||
previewSlidesList.positionViewAtIndex(index, ListView.Center);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue