summaryrefslogtreecommitdiff
path: root/src/webwindow/webwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-07-25 10:44:49 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:04 +0100
commit4ea8138fcaf25b4d866ccafc277ab624d0b24441 (patch)
tree0e14399f6237418a3643173eb69c8df05543469b /src/webwindow/webwindow.cpp
parentRe-view and re-add tab highlight feature (diff)
downloadrekonq-4ea8138fcaf25b4d866ccafc277ab624d0b24441.tar.xz
Re-add WebSnap class & included API in WebWindow for tab preview
Diffstat (limited to 'src/webwindow/webwindow.cpp')
-rw-r--r--src/webwindow/webwindow.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/webwindow/webwindow.cpp b/src/webwindow/webwindow.cpp
index 631c9a2c..6d0d4d72 100644
--- a/src/webwindow/webwindow.cpp
+++ b/src/webwindow/webwindow.cpp
@@ -22,6 +22,7 @@
#include "webwindow.moc"
#include "webpage.h"
+#include "websnap.h"
#include <QUrl>
#include <QLineEdit>
@@ -148,3 +149,9 @@ QIcon WebWindow::icon() const
{
return _view->icon();
}
+
+
+QPixmap WebWindow::tabPreview(int width, int height)
+{
+ return WebSnap::renderPagePreview(*page(), width, height);
+}