1. Ctrl-click item 1.
2. Enter the first letter of item 2, such that
it will be selected and the new current item.
3. Shift-click item 3.
With this commit, all items between 2 and 3 will be selected, as
expected, and not all items between 1 and 3.
BUG: 201459
svn path=/trunk/KDE/kdebase/apps/; revision=
1021267
// Stay consistent with QListView: When changing the current index by key presses,
// also change the selection.
if (m_keyPressed) {
// Stay consistent with QListView: When changing the current index by key presses,
// also change the selection.
if (m_keyPressed) {
- selectionModel()->select(current, QItemSelectionModel::ClearAndSelect);
+ setCurrentIndex(current);