-rw-r--r-- | libopie2/opieui/otabwidget.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/libopie2/opieui/otabwidget.cpp b/libopie2/opieui/otabwidget.cpp index ae396b9..8d7806c 100644 --- a/libopie2/opieui/otabwidget.cpp +++ b/libopie2/opieui/otabwidget.cpp | |||
@@ -390,2 +390,13 @@ void OTabWidget::selectTab( OTabInfo *tab ) | |||
390 | setUpLayout(); | 390 | setUpLayout(); |
391 | |||
392 | QSize t; | ||
393 | |||
394 | t = m_tabBar->sizeHint(); | ||
395 | if ( t.width() > width() ) | ||
396 | t.setWidth( width() ); | ||
397 | int lw = m_widgetStack->lineWidth(); | ||
398 | if ( m_tabBarPosition == Bottom ) | ||
399 | m_tabBar->setGeometry( QMAX(0, lw-2), height() - t.height() - lw, t.width(), t.height() ); | ||
400 | else | ||
401 | m_tabBar->setGeometry( QMAX(0, lw-2), 0, t.width(), t.height() ); | ||
391 | } | 402 | } |
@@ -420,7 +431,10 @@ void OTabWidget::resizeEvent( QResizeEvent * ) | |||
420 | t = m_tabBar->sizeHint(); | 431 | t = m_tabBar->sizeHint(); |
432 | if ( t.width() > width() ) | ||
433 | t.setWidth( width() ); | ||
421 | } | 434 | } |
422 | else | 435 | else |
436 | { | ||
423 | t = m_tabList->sizeHint(); | 437 | t = m_tabList->sizeHint(); |
424 | 438 | t.setWidth( width() ); | |
425 | t.setWidth( width() ); | 439 | } |
426 | 440 | ||