-rw-r--r-- | libopie/otabwidget.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libopie/otabwidget.cpp b/libopie/otabwidget.cpp index 5fc3e8e..1fee919 100644 --- a/libopie/otabwidget.cpp +++ b/libopie/otabwidget.cpp @@ -294,8 +294,15 @@ void OTabWidget::setUpLayout() { tabBar->layoutTabs(); QSize t( tabBarStack->sizeHint() ); + if ( tabBarStyle == IconTab ) + { if ( t.width() > width() ) t.setWidth( width() ); + } + else + { + t.setWidth( width() ); + } int lw = widgetStack->lineWidth(); if ( tabBarPosition == Bottom ) { |