diff options
author | David E. Narváez <david.narvaez@computer.org> | 2012-04-17 01:58:25 -0500 |
---|---|---|
committer | David E. Narváez <david.narvaez@computer.org> | 2012-04-17 01:58:25 -0500 |
commit | 14f5f78b2c59d40207ff0e988200ef0180bd1081 (patch) | |
tree | 86e8487062d1826ceb053614751668d1fbaabea8 /src/tabpreviewpopup.cpp | |
parent | Really fix Upper case urls management (diff) | |
download | rekonq-14f5f78b2c59d40207ff0e988200ef0180bd1081.tar.xz |
Remove tabbar.h and mainwindow.h Dependencies from webtab.cpp
Fixes previous attempt to move tab preview to WebTab class.
REVIEW: 104517
Diffstat (limited to 'src/tabpreviewpopup.cpp')
-rw-r--r-- | src/tabpreviewpopup.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tabpreviewpopup.cpp b/src/tabpreviewpopup.cpp index 821c033c..52c06cfb 100644 --- a/src/tabpreviewpopup.cpp +++ b/src/tabpreviewpopup.cpp @@ -98,7 +98,9 @@ TabPreviewPopup::~TabPreviewPopup() void TabPreviewPopup::setWebTab(WebTab* tab) { - const QPixmap preview = tab->tabPreview(); + int w = (tab->parentWidget()->sizeHint().width() / TabBar::baseWidthDivisor); + int h = w * rApp->mainWindow()->size().height() / rApp->mainWindow()->size().width(); + const QPixmap preview = tab->tabPreview(w, h); if (!preview.isNull()) { |