diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-03-22 10:36:42 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-03-22 10:36:42 +0100 |
commit | 366baf9613b6a0395348292a27c96fdda0238bf6 (patch) | |
tree | c796a4fad3716bbb48d1b3a9cfe6570e4a2c1492 /src/tabbar.cpp | |
parent | Fixed Copyright intro (diff) | |
download | rekonq-366baf9613b6a0395348292a27c96fdda0238bf6.tar.xz |
Change tab dim if count() > 3
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r-- | src/tabbar.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp index 3979ac80..2e29fb0c 100644 --- a/src/tabbar.cpp +++ b/src/tabbar.cpp @@ -66,7 +66,15 @@ QSize TabBar::tabSizeHint (int index) const { Q_UNUSED(index); QSize s = m_parent->sizeHint(); - int w = s.width() / 4; + int w; + if ( count() > 3 ) + { + w = s.width() / 4; + } + else + { + w = s.width() / 3; + } int h = s.height() / 20; QSize ts = QSize(w,h); |