From 366baf9613b6a0395348292a27c96fdda0238bf6 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 22 Mar 2009 10:36:42 +0100 Subject: Change tab dim if count() > 3 --- src/tabbar.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.1