summaryrefslogtreecommitdiff
path: root/src/websnap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/websnap.h')
-rw-r--r--src/websnap.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/websnap.h b/src/websnap.h
index 04fded57..b8ada30f 100644
--- a/src/websnap.h
+++ b/src/websnap.h
@@ -37,6 +37,9 @@
#include <QImage>
#include <QWebPage>
+#define WIDTH 200
+#define HEIGHT 150
+
/**
* This class renders a site producing an image based
@@ -53,12 +56,14 @@ public:
QPixmap previewImage(); // TODO : remove
- static QPixmap renderPreview(const QWebPage &page, int w, int h);
+ static QPixmap renderPreview(const QWebPage &page, int w = WIDTH, int h = HEIGHT);
static KUrl fileForUrl(KUrl url);
static QString guessNameFromUrl(QUrl url);
+ static void savePreview(QPixmap pm, KUrl url);
+
QString snapTitle();
QUrl snapUrl();