From d0ab264b8aa5f5c7fcb21dd172a1f3f5b777356b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Ander=20Pe=C3=B1alba?= Date: Thu, 2 Sep 2010 18:10:46 +0200 Subject: Include clean-up in the big src directory --- src/websnap.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/websnap.h') diff --git a/src/websnap.h b/src/websnap.h index 3baa01fd..5bad952d 100644 --- a/src/websnap.h +++ b/src/websnap.h @@ -38,11 +38,11 @@ // Qt Includes #include - -#include - #include +// Forward Declarations +class QPixmap; + // Defines #define WIDTH 200 #define HEIGHT 150 @@ -78,7 +78,7 @@ public: explicit WebSnap(const KUrl &url, QObject *parent = 0); ~WebSnap(); - + /** * Snaps a pixmap of size w * h from a page * @@ -89,9 +89,9 @@ 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 * @@ -102,7 +102,7 @@ public: * @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 * @@ -112,8 +112,8 @@ public: * * @return the pixmap snapped from the page */ - static QPixmap renderTabPreview(const QWebPage &page, int w, int h); - + static QPixmap renderTabPreview(const QWebPage &page, int w, int h); + /** * Guess the local path where the image for the url provided * should be @@ -141,7 +141,7 @@ 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); }; -- cgit v1.2.1