summaryrefslogtreecommitdiff
path: root/src/websnap.h
diff options
context:
space:
mode:
authorJon Ander Peñalba <jonan88@gmail.com>2010-09-02 18:10:46 +0200
committerJon Ander Peñalba <jonan88@gmail.com>2010-09-03 08:27:20 +0200
commitd0ab264b8aa5f5c7fcb21dd172a1f3f5b777356b (patch)
treef89adefce79c8bf0d5cde2e1bc015a443ccb39fe /src/websnap.h
parentThis commit hacks a merge request, to fast fixing a crash calling the bk toolbar (diff)
downloadrekonq-d0ab264b8aa5f5c7fcb21dd172a1f3f5b777356b.tar.xz
Include clean-up in the big src directory
Diffstat (limited to 'src/websnap.h')
-rw-r--r--src/websnap.h20
1 files changed, 10 insertions, 10 deletions
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 <QtCore/QObject>
-
-#include <QtGui/QPixmap>
-
#include <QtWebKit/QWebPage>
+// 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);
};