┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphindetailsview.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-06-03 20:30:39 +0000
committerPeter Penz <[email protected]>2008-06-03 20:30:39 +0000
commit834082a16cf69c19ac961beae0da1b713f785849 (patch)
tree6d19f69263fd1116d7a1a99bea64c26b700bfc56 /src/dolphindetailsview.cpp
parentae0829d3b8f0f4e44e9d861af3d5951ee1eaa304 (diff)
jump to the URL of the clipboard content if a middle click on an empty area inside the view is done
svn path=/trunk/KDE/kdebase/apps/; revision=816421
Diffstat (limited to 'src/dolphindetailsview.cpp')
-rw-r--r--src/dolphindetailsview.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp
index b725b0da2..932efcb1e 100644
--- a/src/dolphindetailsview.cpp
+++ b/src/dolphindetailsview.cpp
@@ -206,6 +206,10 @@ void DolphinDetailsView::mousePressEvent(QMouseEvent* event)
}
if (!index.isValid() || (index.column() != DolphinModel::Name)) {
+ if (QApplication::mouseButtons() & Qt::MidButton) {
+ m_controller->replaceUrlByClipboard();
+ }
+
const Qt::KeyboardModifiers modifier = QApplication::keyboardModifiers();
if (!(modifier & Qt::ShiftModifier) && !(modifier & Qt::ControlModifier)) {
clearSelection();