scroll the view to make the current item shown

icc-effect-5.14.5
Marco Martin 2014-05-16 14:07:44 +02:00
parent 83c76f21a4
commit 787b0d8cdf
1 changed files with 4 additions and 1 deletions

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);
}
}
}