diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-10-08 01:36:09 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-10-08 01:36:09 +0200 |
commit | cbbc7ca17e0e5edccf44bb448839982fc42ca5de (patch) | |
tree | 46225f1f38932f70d08948793700fe60197451cc /src/websnap.cpp | |
parent | fixing right click rekonq crash (at least, hopefully..) (diff) | |
download | rekonq-cbbc7ca17e0e5edccf44bb448839982fc42ca5de.tar.xz |
TONS of events ignored to let homepage no more crash!
Hopefully...
I hope I also not have removed some rekonq features this way. It seems not, anyway
(obviously) it needs tests
Diffstat (limited to 'src/websnap.cpp')
-rw-r--r-- | src/websnap.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/websnap.cpp b/src/websnap.cpp index 35f1cd39..9e7108b0 100644 --- a/src/websnap.cpp +++ b/src/websnap.cpp @@ -63,6 +63,11 @@ WebSnap::WebSnap(const QUrl &url) } +WebSnap::~WebSnap() +{ +} + + void WebSnap::load() { m_page.mainFrame()->load(m_url); @@ -72,8 +77,8 @@ void WebSnap::load() QPixmap WebSnap::renderPreview(const QWebPage &page,int w, int h) { // prepare page - page.mainFrame()->setScrollBarPolicy(Qt::Vertical, Qt::ScrollBarAlwaysOff); //Why it doesn't work with one setScrollBarPolicy ? bug in qtwebkit ? - page.mainFrame()->setScrollBarPolicy(Qt::Vertical, Qt::ScrollBarAlwaysOff); + page.mainFrame()->setScrollBarPolicy(Qt::Vertical, Qt::ScrollBarAlwaysOff); // Why it doesn't work with one setScrollBarPolicy? + page.mainFrame()->setScrollBarPolicy(Qt::Vertical, Qt::ScrollBarAlwaysOff); // bug in qtwebkit ? page.mainFrame()->setScrollBarPolicy(Qt::Horizontal, Qt::ScrollBarAlwaysOff); page.mainFrame()->setScrollBarPolicy(Qt::Horizontal, Qt::ScrollBarAlwaysOff); |