summaryrefslogtreecommitdiff
path: root/src/previewimage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-04 21:10:14 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-04 21:10:14 +0200
commit0c71d428f284675c658c55d2f3d9f858ad78c850 (patch)
tree44f9c55494c2a6ab13061e39c45f8ab07fef1ea6 /src/previewimage.cpp
parentWebView dtor (diff)
downloadrekonq-0c71d428f284675c658c55d2f3d9f858ad78c850.tar.xz
- Cleaning mouse gesture managements
- context menu crash fixes && some separators added - preparing PreviewImage for right mouse click manage
Diffstat (limited to 'src/previewimage.cpp')
-rw-r--r--src/previewimage.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/previewimage.cpp b/src/previewimage.cpp
index 60207fb3..94f5061f 100644
--- a/src/previewimage.cpp
+++ b/src/previewimage.cpp
@@ -30,6 +30,7 @@
#include <QFile>
#include <QMovie>
+#include <QMouseEvent>
#include <KUrl>
#include <KStandardDirs>
@@ -83,8 +84,17 @@ void PreviewImage::setSiteImage()
void PreviewImage::mousePressEvent(QMouseEvent *event)
{
- Q_UNUSED(event)
- Application::instance()->loadUrl(m_url);
+ switch(event->button())
+ {
+ case Qt::LeftButton:
+ Application::instance()->loadUrl(m_url);
+ break;
+ case Qt::RightButton:
+ // TODO
+ break;
+ default:
+ QLabel::mousePressEvent(event);
+ };
}