diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-09-29 02:08:54 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-09-29 02:08:54 +0200 |
commit | a9cb1f67553dbd45deafddde9625eb228e447f45 (patch) | |
tree | 74454f59e2a4d3bd8e7fbc5ffe32561680f50848 /src/previewimage.cpp | |
parent | New rekonq home page layout (diff) | |
download | rekonq-a9cb1f67553dbd45deafddde9625eb228e447f45.tar.xz |
Load on click (links on previews)
Diffstat (limited to 'src/previewimage.cpp')
-rw-r--r-- | src/previewimage.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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 <QFile> #include <QMovie> @@ -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 |