summaryrefslogtreecommitdiff
path: root/src/websnap.h
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2010-06-26 23:02:10 +0200
committermegabigbug <megabigbug@arrakis.(none)>2010-06-26 23:02:10 +0200
commit76452bac93c7095b6a5a47c84d0b0571af2df59e (patch)
tree0ce57ef7e0d284c7e9cebbf3b772063275ec15b9 /src/websnap.h
parentMerge commit 'refs/merge-requests/142' of git://gitorious.org/rekonq/mainline... (diff)
downloadrekonq-76452bac93c7095b6a5a47c84d0b0571af2df59e.tar.xz
improve previews: compute preview when webview is deleted => instant preview in closed tab page
Diffstat (limited to 'src/websnap.h')
-rw-r--r--src/websnap.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/websnap.h b/src/websnap.h
index d1006c18..41db8c71 100644
--- a/src/websnap.h
+++ b/src/websnap.h
@@ -89,7 +89,29 @@ public:
* @return the pixmap snapped from the page
*/
static QPixmap renderPagePreview(const QWebPage &page, int w = WIDTH, int h = HEIGHT);
+
+ /**
+ * Snaps a pixmap of size w * h from a visible page
+ *
+ * @param page the page to snap
+ * @param w the image width
+ * @param h the image height
+ *
+ * @return the pixmap snapped from the page
+ */
+ static QPixmap renderVisiblePagePreview(const QWebPage &page, int w = WIDTH, int h = HEIGHT);
+
+ /**
+ * Snaps a pixmap of size w * h from a visible page
+ *
+ * @param page the page to snap
+ * @param w the image width
+ * @param h the image height
+ *
+ * @return the pixmap snapped from the page
+ */
+ static QPixmap renderClosingPagePreview(const QWebPage &page, int w = WIDTH, int h = HEIGHT);
/**
* Snaps a pixmap of size w * h from a page for tab preview