summaryrefslogtreecommitdiff
path: root/src/previewimage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-08 01:36:09 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-08 01:36:09 +0200
commitcbbc7ca17e0e5edccf44bb448839982fc42ca5de (patch)
tree46225f1f38932f70d08948793700fe60197451cc /src/previewimage.cpp
parentfixing right click rekonq crash (at least, hopefully..) (diff)
downloadrekonq-cbbc7ca17e0e5edccf44bb448839982fc42ca5de.tar.xz
TONS of events ignored to let homepage no more crash!
Hopefully... I hope I also not have removed some rekonq features this way. It seems not, anyway (obviously) it needs tests
Diffstat (limited to 'src/previewimage.cpp')
-rw-r--r--src/previewimage.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/previewimage.cpp b/src/previewimage.cpp
index 07eca1b0..7c3752cc 100644
--- a/src/previewimage.cpp
+++ b/src/previewimage.cpp
@@ -71,6 +71,7 @@ PreviewImage::PreviewImage(const QUrl &url)
PreviewImage::~PreviewImage()
{
+ delete ws;
}
@@ -87,6 +88,19 @@ void PreviewImage::setSiteImage()
}
+void PreviewImage::mouseDoubleClickEvent(QMouseEvent *event)
+{
+ Q_UNUSED(event);
+}
+
+
+void PreviewImage::mouseMoveEvent(QMouseEvent *event)
+{
+ kDebug() << "moving mouse over preview image";
+ Q_UNUSED(event)
+}
+
+
void PreviewImage::mousePressEvent(QMouseEvent *event)
{
switch(event->button())
@@ -103,6 +117,12 @@ void PreviewImage::mousePressEvent(QMouseEvent *event)
}
+void PreviewImage::mouseReleaseEvent(QMouseEvent *event)
+{
+ Q_UNUSED(event)
+}
+
+
QString PreviewImage::guessNameFromUrl(QUrl url)
{
QString name = url.toString( QUrl::RemoveScheme | QUrl::RemoveUserInfo | QUrl::StripTrailingSlash );