summaryrefslogtreecommitdiff
path: root/src/previewimage.cpp
diff options
context:
space:
mode:
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 );