diff options
| author | Peter Penz <[email protected]> | 2007-06-06 20:32:03 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-06-06 20:32:03 +0000 |
| commit | 5de9950182b5a1b0b99e4cc51e48d4d83b6bef24 (patch) | |
| tree | 923bfc5da3d15bda30169519074c76f0d2bd75c6 /src/dolphindetailsview.cpp | |
| parent | db7d239632009906b9a8cfb24cb799fee7fb0306 (diff) | |
start to simplify the DolphinController as preparation for the kparts DolphinViewWidget (as discussed with David)
svn path=/trunk/KDE/kdebase/apps/; revision=672357
Diffstat (limited to 'src/dolphindetailsview.cpp')
| -rw-r--r-- | src/dolphindetailsview.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index 66ca9bf81..098fc46a0 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -155,15 +155,16 @@ void DolphinDetailsView::contextMenuEvent(QContextMenuEvent* event) void DolphinDetailsView::mousePressEvent(QMouseEvent* event) { - if (!indexAt(event->pos()).isValid()) { + QTreeView::mousePressEvent(event); + + const QModelIndex index = indexAt(event->pos()); + if (!index.isValid() || (index.column() != KDirModel::Name)) { const Qt::KeyboardModifiers modifier = QApplication::keyboardModifiers(); if (!(modifier & Qt::ShiftModifier) && !(modifier & Qt::ControlModifier)) { clearSelection(); } } - QTreeView::mousePressEvent(event); - if (event->button() == Qt::LeftButton) { m_showElasticBand = true; |
