From 5ba5ca480db1eb14fa1163ce5ac1640f66125b21 Mon Sep 17 00:00:00 2001 From: Yoann Laissus Date: Tue, 20 Sep 2011 17:55:46 +0200 Subject: Fix tab size and addTabButton position when a KMessageWidget appears REVIEW: 102651 --- src/tabbar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tabbar.cpp') 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) -- cgit v1.2.1