diff options
Diffstat (limited to 'src/websnap.h')
-rw-r--r-- | src/websnap.h | 12 |
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 |