┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincolumnwidget.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/dolphincolumnwidget.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/dolphincolumnwidget.cpp')
-rw-r--r--src/dolphincolumnwidget.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dolphincolumnwidget.cpp b/src/dolphincolumnwidget.cpp
index a380dc52b..2ca4cdbbf 100644
--- a/src/dolphincolumnwidget.cpp
+++ b/src/dolphincolumnwidget.cpp
@@ -337,7 +337,11 @@ void DolphinColumnWidget::paintEvent(QPaintEvent* event)
void DolphinColumnWidget::mousePressEvent(QMouseEvent* event)
{
requestActivation();
- if (indexAt(event->pos()).isValid() && (event->button() == Qt::LeftButton)) {
+ if (!indexAt(event->pos()).isValid()) {
+ if (QApplication::mouseButtons() & Qt::MidButton) {
+ m_view->m_controller->replaceUrlByClipboard();
+ }
+ } else if (event->button() == Qt::LeftButton) {
// TODO: see comment in DolphinIconsView::mousePressEvent()
setState(QAbstractItemView::DraggingState);
}