diff options
author | Yoann Laissus <yoann.laissus@gmail.com> | 2011-09-20 17:55:46 +0200 |
---|---|---|
committer | Yoann Laissus <yoann.laissus@gmail.com> | 2011-09-20 17:55:46 +0200 |
commit | 5ba5ca480db1eb14fa1163ce5ac1640f66125b21 (patch) | |
tree | cbcef92140ac91161531667ae54e743c6d946efc /src/tabbar.cpp | |
parent | QtWebKit 2.2 related fixes (diff) | |
download | rekonq-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.cpp | 4 |
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) |