making highlight follow changeslide
This commit is contained in:
parent
8fad5cadb4
commit
31db6ab1ef
1 changed files with 6 additions and 2 deletions
|
@ -57,7 +57,9 @@ Item {
|
|||
id: previewerMouse
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
onClicked: changeSlide(index)
|
||||
onClicked: {
|
||||
changeSlide(index);
|
||||
}
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
propagateComposedEvents: true
|
||||
}
|
||||
|
@ -66,8 +68,10 @@ Item {
|
|||
Connections {
|
||||
target: SlideModel
|
||||
onDataChanged: {
|
||||
if (active)
|
||||
if (active) {
|
||||
previewSlidesList.currentIndex = index;
|
||||
previewSlidesList.positionViewAtIndex(index, ListView.Contain);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue