svn path=/trunk/KDE/kdebase/apps/; revision=795339
// Stay consistent with QListView: When changing the current index by key presses,
// also change the selection.
- const Qt::KeyboardModifiers modifier = QApplication::keyboardModifiers();
- const bool adjustSelection = !(modifier & Qt::ShiftModifier) &&
- !(modifier & Qt::ControlModifier) &&
- !m_showElasticBand;
-
- if (adjustSelection) {
+ if (QApplication::mouseButtons() == Qt::NoButton) {
selectionModel()->select(current, QItemSelectionModel::ClearAndSelect);
}
}