summaryrefslogtreecommitdiff
path: root/src/websnap.cpp
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2010-06-27 11:40:53 +0200
committermegabigbug <megabigbug@arrakis.(none)>2010-06-27 11:40:53 +0200
commit627277453810c68f66ac934326df1bea3eed514d (patch)
tree992d2f2734d0a160929e2f25e6b783bc2ad296c9 /src/websnap.cpp
parentimprove previews: compute preview when webview is deleted => instant preview ... (diff)
downloadrekonq-627277453810c68f66ac934326df1bea3eed514d.tar.xz
add comments
Diffstat (limited to 'src/websnap.cpp')
-rw-r--r--src/websnap.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/websnap.cpp b/src/websnap.cpp
index db0c791c..29201215 100644
--- a/src/websnap.cpp
+++ b/src/websnap.cpp
@@ -101,8 +101,13 @@ QPixmap WebSnap::renderTabPreview(const QWebPage &page, int w, int h)
return pageImage.scaled(w, h, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
}
+/*
+// This code is an attempt to render a page currently displayed in a tab without alterate it.
+// It currently does not work but can give ideas:
+// - activate/disable scrollbars of a webview causes problems => this method try to not do that
+// - the viewport and the scroll position must be modified an restored
+// - page.setViewportSize(size); does not seem to work when the page is currently displayed in a webview
-// This method tries to render a page currently displayed in a tab without alterate it.
QPixmap WebSnap::renderVisiblePagePreview(const QWebPage &page, int w, int h)
{
// save page settings
@@ -141,7 +146,7 @@ QPixmap WebSnap::renderVisiblePagePreview(const QWebPage &page, int w, int h)
return pageImage;
}
-
+*/
QPixmap WebSnap::renderClosingPagePreview(const QWebPage &page, int w, int h)
{