summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-03-22 10:36:42 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-03-22 10:36:42 +0100
commit366baf9613b6a0395348292a27c96fdda0238bf6 (patch)
treec796a4fad3716bbb48d1b3a9cfe6570e4a2c1492 /src
parentFixed Copyright intro (diff)
downloadrekonq-366baf9613b6a0395348292a27c96fdda0238bf6.tar.xz
Change tab dim if count() > 3
Diffstat (limited to 'src')
-rw-r--r--src/tabbar.cpp10
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);