diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-09-18 17:21:37 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-09-18 17:21:37 +0200 |
commit | d201abbd56715f53b48b27ccc0f1bf0b346f449e (patch) | |
tree | 7abbd1bce311322ef7bdd2caf765ab41c0913def /src/previewimage.cpp | |
parent | LAST BRANCH (promised!!) (diff) | |
download | rekonq-d201abbd56715f53b48b27ccc0f1bf0b346f449e.tar.xz |
It finally works!
Need some fixes to be merged..
Diffstat (limited to 'src/previewimage.cpp')
-rw-r--r-- | src/previewimage.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/previewimage.cpp b/src/previewimage.cpp index 300b7ee7..2d963171 100644 --- a/src/previewimage.cpp +++ b/src/previewimage.cpp @@ -28,22 +28,27 @@ #include <KUrl> #include <KStandardDirs> +#include <KDebug> - -PreviewImage::PreviewImage(const KUrl &url, const QString &fileName) +PreviewImage::PreviewImage(const QString &url) : QLabel() - , m_url(url) - , m_fileName(fileName) + , ws(0) { QString path = KStandardDirs::locate("appdata", "pics/loading.mng"); //QString("thumbs/") + m_fileName, true); setPixmap( QPixmap(path) ); + kDebug() << url; + ws = new WebSnap( KUrl(url) ); + connect(ws, SIGNAL(finished()), this, SLOT(setSiteImage())); } PreviewImage::~PreviewImage() { + kDebug() << "bye bye.."; } -void PreviewImage::doItYourself() +void PreviewImage::setSiteImage() { + kDebug() << "Done. works?"; + setPixmap( ws->previewImage() ); } |