From 834082a16cf69c19ac961beae0da1b713f785849 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 3 Jun 2008 20:30:39 +0000 Subject: 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 --- src/dolphincolumnwidget.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/dolphincolumnwidget.cpp') 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); } -- cgit v1.3