fixed bug: activating service item switches the slide list properly
This commit is contained in:
parent
03f6871fe1
commit
3c2f74ae66
3 changed files with 16 additions and 15 deletions
|
@ -231,6 +231,16 @@ FocusScope {
|
|||
NumberAnimation {properties: "x, y"; duration: 100}
|
||||
}
|
||||
|
||||
|
||||
Connections {
|
||||
target: SlideMod
|
||||
function onActiveChanged(index) {
|
||||
console.log("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
|
||||
console.log(index);
|
||||
previewSlidesList.currentIndex = index;
|
||||
previewSlidesList.positionViewAtIndex(index, ListView.Center);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Component {
|
||||
|
|
|
@ -85,16 +85,4 @@ Item {
|
|||
propagateComposedEvents: true
|
||||
}
|
||||
|
||||
|
||||
Connections {
|
||||
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