summaryrefslogtreecommitdiff
path: root/src/websnap.h
diff options
context:
space:
mode:
authormatgic78 <matgic78@gmail.com>2010-01-15 17:20:51 +0100
committermatgic78 <matgic78@gmail.com>2010-02-06 11:22:47 +0100
commit544094302a51b919b1eea86b313ec10d47533a08 (patch)
tree3532f1fb834ebc3ef9e46c6cc85edf92019c3a78 /src/websnap.h
parenttmp commit (diff)
downloadrekonq-544094302a51b919b1eea86b313ec10d47533a08.tar.xz
A new approach for choosing previews : a bar appears, then you browse to the page you want to preview, and then you click a button
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();