From 673eb669bf68072089ffabe7d9beea17292ba3ba Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 2 Aug 2009 01:13:49 +0200 Subject: Fixing coding style --- src/tabbar.cpp | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/tabbar.cpp b/src/tabbar.cpp index fd27db85..ece2ee8f 100644 --- a/src/tabbar.cpp +++ b/src/tabbar.cpp @@ -79,12 +79,21 @@ QSize TabBar::tabSizeHint(int index) const int w; if (baseWidth*count()minWidth) - w=tabBarWidth/count(); - else - w=minWidth; - + { + w = baseWidth; + } + else + { + if (tabBarWidth/count()>minWidth) + { + w = tabBarWidth/count(); + } + else + { + w = minWidth; + } + } + int h = KTabBar::tabSizeHint(index).height(); QSize ts = QSize(w, h); -- cgit v1.2.1