diff options
| author | Peter Penz <[email protected]> | 2007-08-07 06:34:05 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-08-07 06:34:05 +0000 |
| commit | 04a20a0d07d64eef6382298bde9f82486277da2c (patch) | |
| tree | 172c06e159998fa5fccd087f44955a5b16ca10f6 | |
| parent | e3b4cb83153ab959a5c8620ecc14be5a69511b1c (diff) | |
column view: fixed SHIFT modifier selection behavior
svn path=/trunk/KDE/kdebase/apps/; revision=697218
| -rw-r--r-- | src/dolphincolumnview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dolphincolumnview.cpp b/src/dolphincolumnview.cpp index 99a5fea7e..b26fe9067 100644 --- a/src/dolphincolumnview.cpp +++ b/src/dolphincolumnview.cpp @@ -250,6 +250,9 @@ void ColumnWidget::mousePressEvent(QMouseEvent* event) const Qt::KeyboardModifiers modifier = QApplication::keyboardModifiers(); if (modifier & Qt::ControlModifier) { m_view->requestActivation(this); + if (!selModel->hasSelection()) { + selModel->setCurrentIndex(index, QItemSelectionModel::Select); + } selModel->select(index, QItemSelectionModel::Toggle); swallowMousePressEvent = true; } else if (item->isDir()) { @@ -267,9 +270,6 @@ void ColumnWidget::mousePressEvent(QMouseEvent* event) m_view->requestActivation(this); } - // TODO: check behavior with ShiftModifier - //if (modifier & Qt::ShiftModifier) - // TODO: is the assumption OK that Qt::RightButton always represents the context menu button? if (event->button() == Qt::RightButton) { swallowMousePressEvent = true; |
