diff options
| author | Andrea Diamantini <adjam7@gmail.com> | 2009-08-02 01:13:49 +0200 | 
|---|---|---|
| committer | Andrea Diamantini <adjam7@gmail.com> | 2009-08-02 01:13:49 +0200 | 
| commit | 673eb669bf68072089ffabe7d9beea17292ba3ba (patch) | |
| tree | a0610532c8766925719b1c362060a3f8dd44fe94 | |
| parent | Dynamic tab bar (diff) | |
| download | rekonq-673eb669bf68072089ffabe7d9beea17292ba3ba.tar.xz | |
Fixing coding style
| -rw-r--r-- | src/tabbar.cpp | 21 | 
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); | 
