summaryrefslogtreecommitdiff
path: root/src/tabbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-08-02 01:13:49 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-08-02 01:13:49 +0200
commit673eb669bf68072089ffabe7d9beea17292ba3ba (patch)
treea0610532c8766925719b1c362060a3f8dd44fe94 /src/tabbar.cpp
parentDynamic tab bar (diff)
downloadrekonq-673eb669bf68072089ffabe7d9beea17292ba3ba.tar.xz
Fixing coding style
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r--src/tabbar.cpp21
1 files 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()<tabBarWidth)
- w=baseWidth;
- else if (tabBarWidth/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);