diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-09-15 02:39:22 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-09-15 02:39:22 +0200 |
commit | 78d922d6433be8375b18a92418c635c04fe9bb4a (patch) | |
tree | 284afcc28af598b6f241dc5919b79290d558e015 /src/websnap.cpp | |
parent | Some CSS fixes (diff) | |
download | rekonq-78d922d6433be8375b18a92418c635c04fe9bb4a.tar.xz |
Initial newtab page settings implementation
it doesn't really fit our needs.
Just a starting point..
Diffstat (limited to 'src/websnap.cpp')
-rw-r--r-- | src/websnap.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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 <QSize> #include <QWebFrame> +#include <QWebSettings> #include <QPainter> #include <QTimer> @@ -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())); - } |