diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-02-27 15:29:58 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-02-27 15:29:58 +0100 |
commit | 0f1dfeac60cdf35e44838b1323d98db8383738c7 (patch) | |
tree | 7f01671350c421a8bb82ec17d57c6afeda26b367 /src/tabbar.cpp | |
parent | tests support for every Qt derived rekonq class (diff) | |
download | rekonq-0f1dfeac60cdf35e44838b1323d98db8383738c7.tar.xz |
New (embrional) unit tests: mainview, tabbar, webtab, webpage
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r-- | src/tabbar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp index ff996cb5..49ed230b 100644 --- a/src/tabbar.cpp +++ b/src/tabbar.cpp @@ -93,13 +93,13 @@ QSize TabBar::tabSizeHint(int index) const int minWidth = view->sizeHint().width()/MIN_WIDTH_DIVISOR; int w; - if (baseWidth*count()<tabBarWidth) + if (baseWidth*count() < tabBarWidth) { w = baseWidth; } else { - if (count() > 0 && tabBarWidth/count()>minWidth) + if (count() > 0 && tabBarWidth/count() > minWidth) { w = tabBarWidth/count(); } |