summaryrefslogtreecommitdiff
path: root/src/websnap.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-06-28 17:49:28 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-06-28 17:49:28 +0200
commitceef608527587443098df9284211cebec2e882b9 (patch)
treeff075538236ad5ff6eef0765a635918c10d17ce0 /src/websnap.h
parentMerge branch 'master' of gitorious.org:rekonq/mainline (diff)
parentadd comments (diff)
downloadrekonq-ceef608527587443098df9284211cebec2e882b9.tar.xz
Merge commit 'refs/merge-requests/143' of git://gitorious.org/rekonq/mainline into m143
Diffstat (limited to 'src/websnap.h')
-rw-r--r--src/websnap.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/websnap.h b/src/websnap.h
index d1006c18..3baa01fd 100644
--- a/src/websnap.h
+++ b/src/websnap.h
@@ -89,7 +89,19 @@ public:
* @return the pixmap snapped from the page
*/
static QPixmap renderPagePreview(const QWebPage &page, int w = WIDTH, int h = HEIGHT);
+
+ // static QPixmap renderVisiblePagePreview(const QWebPage &page, int w = WIDTH, int h = HEIGHT); TODO: try to make this method work => more previews for the urlbar
+ /**
+ * Snaps a pixmap of size w * h from a page of a tab that is currently closing
+ *
+ * @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