From d201abbd56715f53b48b27ccc0f1bf0b346f449e Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 18 Sep 2009 17:21:37 +0200 Subject: It finally works! Need some fixes to be merged.. --- src/websnap.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/websnap.h') diff --git a/src/websnap.h b/src/websnap.h index be2ad10b..7e77da49 100644 --- a/src/websnap.h +++ b/src/websnap.h @@ -31,7 +31,7 @@ #include #include -#include +#include #include @@ -45,9 +45,9 @@ class WebSnap : public QObject Q_OBJECT public: - WebSnap(const KUrl &url, const QString &fileName); + WebSnap(const KUrl &url); - QImage *previewImage(); + QPixmap previewImage(); signals: void finished(); @@ -59,9 +59,8 @@ private slots: private: QWebPage m_page; KUrl m_url; - QImage *m_image; + QPixmap m_image; QString m_fileName; - QSize m_targetSize; }; #endif // WEB_SNAP_H -- cgit v1.2.1