summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r--src/webpage.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 32b785b4..9e539f7a 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"
@@ -479,6 +480,16 @@ void WebPage::loadFinished(bool ok)
{
wallet()->fillFormData(mainFrame());
}
+
+/* this dead code is for try WebSnap::renderVisiblePagePreview()
+ if (ok)
+ {
+ QPixmap preview = WebSnap::renderVisiblePagePreview(*this);
+ QString path = WebSnap::imagePathFromUrl(mainFrame()->url().toString());
+ QFile::remove(path);
+ preview.save(path);
+ }
+*/
}