summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-27 10:51:39 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-10-27 10:51:39 +0100
commitdcfc088a0ac1abc7760db2c47caf8a70165f6ea6 (patch)
tree9bf7e7dc700dcd78041bd24856bb4e8a0e0f86a6 /src
parentMerge commit 'refs/merge-requests/1918' of git://gitorious.org/rekonq/mainlin... (diff)
parentadd middle click action on favorite preview (diff)
downloadrekonq-dcfc088a0ac1abc7760db2c47caf8a70165f6ea6.tar.xz
Merge commit 'refs/merge-requests/1925' of git://gitorious.org/rekonq/mainline into Tue1925
Diffstat (limited to 'src')
-rw-r--r--src/previewimage.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/previewimage.cpp b/src/previewimage.cpp
index 5b4d1efd..1c554cb9 100644
--- a/src/previewimage.cpp
+++ b/src/previewimage.cpp
@@ -267,7 +267,13 @@ void PreviewImage::mousePressEvent(QMouseEvent *event)
{
Application::instance()->loadUrl(m_url);
return;
- };
+ }
+ else if(event->button() == Qt::MidButton)
+ {
+ Application::instance()->loadUrl(m_url, Rekonq::SettingOpenTab);
+ return;
+ }
+
QWidget::mousePressEvent(event);
}