diff options
author | matgic78 <matgic78@gmail.com> | 2010-01-15 17:20:51 +0100 |
---|---|---|
committer | matgic78 <matgic78@gmail.com> | 2010-02-06 11:22:47 +0100 |
commit | 544094302a51b919b1eea86b313ec10d47533a08 (patch) | |
tree | 3532f1fb834ebc3ef9e46c6cc85edf92019c3a78 /src/websnap.cpp | |
parent | tmp commit (diff) | |
download | rekonq-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.cpp')
-rw-r--r-- | src/websnap.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/websnap.cpp b/src/websnap.cpp index 0d72ef3a..ff4746ca 100644 --- a/src/websnap.cpp +++ b/src/websnap.cpp @@ -42,10 +42,6 @@ #include <QFile> -#define WIDTH 200 -#define HEIGHT 150 - - WebSnap::WebSnap(const QUrl &url) : QObject() { @@ -115,6 +111,13 @@ QPixmap WebSnap::renderPreview(const QWebPage &page,int w, int h) } +void WebSnap::savePreview(QPixmap pm, KUrl url) +{ + QFile::remove(fileForUrl(url).toLocalFile()); + pm.save(fileForUrl(url).toLocalFile()); +} + + KUrl WebSnap::fileForUrl(KUrl url) { QString filePath = |