summaryrefslogtreecommitdiff
path: root/src/tabpreviewpopup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabpreviewpopup.cpp')
-rw-r--r--src/tabpreviewpopup.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tabpreviewpopup.cpp b/src/tabpreviewpopup.cpp
index 31d3cca9..4466868d 100644
--- a/src/tabpreviewpopup.cpp
+++ b/src/tabpreviewpopup.cpp
@@ -3,6 +3,7 @@
* This file is a part of the rekonq project
*
* Copyright (C) 2011 by Vyacheslav Blinov <blinov dot vyacheslav at gmail dot com>
+* Copyright (C) 2011-2012 by Andrea Diamantini <adjam7 at gmail dot com>
*
*
* This program is free software; you can redistribute it and/or
@@ -23,6 +24,7 @@
*
* ============================================================ */
+
//Self Includes
#include "tabpreviewpopup.h"
@@ -87,6 +89,7 @@ TabPreviewPopup::TabPreviewPopup(WebTab* tab, QWidget* parent)
setWebTab(tab);
}
+
TabPreviewPopup::~TabPreviewPopup()
{
delete m_thumbnail;
@@ -100,7 +103,7 @@ void TabPreviewPopup::setWebTab(WebTab* tab)
int h = w * rApp->mainWindow()->size().height() / rApp->mainWindow()->size().width();
if (!tab->part())
- setThumbnail(WebSnap::renderTabPreview(*tab->page(), w, h));
+ setThumbnail(WebSnap::renderPagePreview(*tab->page(), w, h));
else
{
QWidget *part = tab->part()->widget();
@@ -119,11 +122,13 @@ void TabPreviewPopup::setThumbnail(const QPixmap& pixmap)
m_thumbnail->setPixmap(pixmap);
}
+
void TabPreviewPopup::setUrl(const QString& text)
{
m_url->setText(text);
}
+
void TabPreviewPopup::setFixedSize(int w, int h)
{
KPassivePopup::setFixedSize(w, h);