summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2010-06-26 23:02:10 +0200
committermegabigbug <megabigbug@arrakis.(none)>2010-06-26 23:02:10 +0200
commit76452bac93c7095b6a5a47c84d0b0571af2df59e (patch)
tree0ce57ef7e0d284c7e9cebbf3b772063275ec15b9 /src/webpage.cpp
parentMerge commit 'refs/merge-requests/142' of git://gitorious.org/rekonq/mainline... (diff)
downloadrekonq-76452bac93c7095b6a5a47c84d0b0571af2df59e.tar.xz
improve previews: compute preview when webview is deleted => instant preview in closed tab page
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r--src/webpage.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 32b785b4..6b45ad10 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -46,6 +46,7 @@
#include "networkaccessmanager.h"
#include "adblockmanager.h"
#include "urlbar.h"
+#include "websnap.h"
#include "sslinfodialog_p.h"
@@ -211,7 +212,7 @@ WebPage::WebPage(QWidget *parent)
WebPage::~WebPage()
{
- disconnect();
+ disconnect();
}
@@ -479,6 +480,15 @@ void WebPage::loadFinished(bool ok)
{
wallet()->fillFormData(mainFrame());
}
+/*
+ if (ok)
+ {
+ QPixmap preview = WebSnap::renderVisiblePagePreview(*this);
+ QString path = WebSnap::imagePathFromUrl(mainFrame()->url().toString());
+ QFile::remove(path);
+ preview.save(path);
+ }
+*/
}