diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-02-02 23:21:27 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-02-02 23:21:27 +0100 |
commit | f7ae82bf7c7821ad3bd9a4a0fa9c0068fc2fc2e3 (patch) | |
tree | 560bd702d131db12803982bb5b79749aa8a882cf /src/tabpreviewpopup.cpp | |
parent | Removed unuseful renderClosingTabPreview (diff) | |
download | rekonq-f7ae82bf7c7821ad3bd9a4a0fa9c0068fc2fc2e3.tar.xz |
clean up WebSnap and provide automatic thumbs update for about:tabs
page
Diffstat (limited to 'src/tabpreviewpopup.cpp')
-rw-r--r-- | src/tabpreviewpopup.cpp | 7 |
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); |