From 78d922d6433be8375b18a92418c635c04fe9bb4a Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 15 Sep 2009 02:39:22 +0200 Subject: Initial newtab page settings implementation it doesn't really fit our needs. Just a starting point.. --- src/websnap.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/websnap.cpp') diff --git a/src/websnap.cpp b/src/websnap.cpp index 8bacd3b2..05ea17a9 100644 --- a/src/websnap.cpp +++ b/src/websnap.cpp @@ -33,6 +33,7 @@ #include #include +#include #include #include @@ -43,10 +44,12 @@ WebSnap::WebSnap(const KUrl &url, const QString &fileName) , m_image(QImage()) , m_fileName(fileName) { + // this to not register websnap history + m_page.settings()->setAttribute(QWebSettings::PrivateBrowsingEnabled, true); + m_targetSize = QSize(200, 150); connect(&m_page, SIGNAL(loadFinished(bool)), this, SLOT(saveResult(bool))); QTimer::singleShot(0, this, SLOT(load())); - } -- cgit v1.2.1