diff options
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) |