summaryrefslogtreecommitdiff
path: root/src/webwindow
diff options
context:
space:
mode:
Diffstat (limited to 'src/webwindow')
-rw-r--r--src/webwindow/webwindow.cpp7
-rw-r--r--src/webwindow/webwindow.h3
2 files changed, 10 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);
+}
diff --git a/src/webwindow/webwindow.h b/src/webwindow/webwindow.h
index 7d72ed34..189f111f 100644
--- a/src/webwindow/webwindow.h
+++ b/src/webwindow/webwindow.h
@@ -29,6 +29,7 @@ class WebPage;
class QWebView;
class QLineEdit;
+class QPixmap;
class QUrl;
@@ -47,6 +48,8 @@ public:
QUrl url() const;
QString title() const;
QIcon icon() const;
+
+ QPixmap tabPreview(int width, int height);
private Q_SLOTS:
void checkLoadUrl();