scroll the view to make the current item shown

This commit is contained in:
Marco Martin 2014-05-16 14:07:44 +02:00
parent 83c76f21a4
commit 787b0d8cdf

View file

@ -130,7 +130,10 @@ KWin.Switcher {
boundsBehavior: Flickable.StopAtBounds
Connections {
target: tabBox
onCurrentIndexChanged: {thumbnailListView.currentIndex = tabBox.currentIndex;}
onCurrentIndexChanged: {
thumbnailListView.currentIndex = tabBox.currentIndex;
thumbnailListView.positionViewAtIndex(thumbnailListView.currentIndex, ListView.Contain);
}
}
}