summaryrefslogtreecommitdiff
path: root/src/tabbar.cpp
diff options
context:
space:
mode:
authorYoann Laissus <yoann.laissus@gmail.com>2011-09-20 17:55:46 +0200
committerYoann Laissus <yoann.laissus@gmail.com>2011-09-20 17:55:46 +0200
commit5ba5ca480db1eb14fa1163ce5ac1640f66125b21 (patch)
treecbcef92140ac91161531667ae54e743c6d946efc /src/tabbar.cpp
parentQtWebKit 2.2 related fixes (diff)
downloadrekonq-5ba5ca480db1eb14fa1163ce5ac1640f66125b21.tar.xz
Fix tab size and addTabButton position when a KMessageWidget appears
REVIEW: 102651
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r--src/tabbar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp
index 2c28573f..172d98ee 100644
--- a/src/tabbar.cpp
+++ b/src/tabbar.cpp
@@ -98,8 +98,8 @@ QSize TabBar::tabSizeHint(int index) const
int buttonSize = view->addTabButton()->size().width();
int tabBarWidth = view->size().width() - buttonSize;
- int baseWidth = view->sizeHint().width() / baseWidthDivisor;
- int minWidth = view->sizeHint().width() / minWidthDivisor;
+ int baseWidth = view->originalWidthHint() / baseWidthDivisor;
+ int minWidth = view->originalWidthHint() / minWidthDivisor;
int w;
if (baseWidth * count() < tabBarWidth)