summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2010-06-22 19:07:30 +0200
committermegabigbug <megabigbug@arrakis.(none)>2010-06-22 19:07:30 +0200
commitf3ff5911b02ab3cc3fd36713f91f13b45c55063c (patch)
tree9c1f05bac61c12572fce66d05a8324c04c105777 /src
parentfix (almost) empty area in the previews (diff)
downloadrekonq-f3ff5911b02ab3cc3fd36713f91f13b45c55063c.tar.xz
add comments
Diffstat (limited to 'src')
-rw-r--r--src/websnap.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/websnap.h b/src/websnap.h
index c9ab2e71..d1006c18 100644
--- a/src/websnap.h
+++ b/src/websnap.h
@@ -80,16 +80,26 @@ public:
~WebSnap();
/**
- * Snaps a pixmap of size w * h from a page and save it to cache
+ * Snaps a pixmap of size w * h from a page
*
* @param page the page to snap
* @param w the image width
* @param h the image height
- * @param save decide to save or not the preview on cache
*
* @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 page for tab preview
+ *
+ * @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 renderTabPreview(const QWebPage &page, int w, int h);
/**
@@ -119,6 +129,8 @@ signals:
private:
QWebPage m_page;
KUrl m_url;
+
+ //render a preview: common part of renderPagePreview() and renderTabPreview()
static QPixmap render(const QWebPage &page, int w, int h);
};