From a9cb1f67553dbd45deafddde9625eb228e447f45 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 29 Sep 2009 02:08:54 +0200 Subject: Load on click (links on previews) --- src/previewimage.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/previewimage.cpp') diff --git a/src/previewimage.cpp b/src/previewimage.cpp index ab0a05e6..96b02be7 100644 --- a/src/previewimage.cpp +++ b/src/previewimage.cpp @@ -26,6 +26,8 @@ #include "previewimage.h" #include "previewimage.moc" +#include "application.h" + #include #include @@ -36,6 +38,7 @@ PreviewImage::PreviewImage(const QString &url, const QString &pos) : QLabel() , ws(0) + , m_url(url) { QString path = KStandardDirs::locateLocal("cache", QString("thumbs/rek") + pos + ".png", true); @@ -71,3 +74,10 @@ void PreviewImage::setSiteImage() setPixmap( ws->previewImage() ); } + + +void PreviewImage::mousePressEvent(QMouseEvent *event) +{ + Q_UNUSED(event) + Application::instance()->loadUrl(m_url); +} \ No newline at end of file -- cgit v1.2.1