From 76452bac93c7095b6a5a47c84d0b0571af2df59e Mon Sep 17 00:00:00 2001 From: megabigbug Date: Sat, 26 Jun 2010 23:02:10 +0200 Subject: improve previews: compute preview when webview is deleted => instant preview in closed tab page --- src/websnap.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/websnap.h') 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 -- cgit v1.2.1