diff options
Diffstat (limited to 'src')
| -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); | 
