summaryrefslogtreecommitdiff
path: root/src/tabpreviewpopup.cpp
diff options
context:
space:
mode:
authorYoann Laissus <yoann.laissus@gmail.com>2012-08-05 16:48:38 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-08-14 17:47:41 +0200
commitf7418e262b81dfcdad8d690b2ff7df0d4ffd9df5 (patch)
tree0e0bd6f904f9b2f929837a0cc2820abf9f173e24 /src/tabpreviewpopup.cpp
parent* Split updateTabBar() into two separate methods (diff)
downloadrekonq-f7418e262b81dfcdad8d690b2ff7df0d4ffd9df5.tar.xz
Fix the tab preview ratio. We want the web page ratio, not the window ratio.
Diffstat (limited to 'src/tabpreviewpopup.cpp')
-rw-r--r--src/tabpreviewpopup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tabpreviewpopup.cpp b/src/tabpreviewpopup.cpp
index 63ff542d..0490e602 100644
--- a/src/tabpreviewpopup.cpp
+++ b/src/tabpreviewpopup.cpp
@@ -99,7 +99,7 @@ TabPreviewPopup::~TabPreviewPopup()
void TabPreviewPopup::setWebTab(WebTab* tab)
{
int w = (tab->parentWidget()->sizeHint().width() / TabBar::baseWidthDivisor);
- int h = w * rApp->mainWindow()->size().height() / rApp->mainWindow()->size().width();
+ int h = w * tab->size().height() / tab->size().width();
const QPixmap preview = tab->tabPreview(w, h);
if (!preview.isNull())