summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);