diff options
Diffstat (limited to 'src/websnap.h')
-rw-r--r-- | src/websnap.h | 9 |
1 files changed, 4 insertions, 5 deletions
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 <KUrl> #include <QtCore/QObject> -#include <QImage> +#include <QPixmap> #include <QWebPage> @@ -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 |