Skip to content

Commit

Permalink
Avoid bug with tabs in Qt 4.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Abs62 committed Feb 15, 2012
1 parent 03d1dfe commit a06df0a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintabwidget.cc
Expand Up @@ -17,11 +17,17 @@ void MainTabWidget::setHideSingleTab(bool hide)
void MainTabWidget::tabInserted(int index)
{
updateTabBarVisibility();

// Avoid bug in Qt 4.8.0
setUsesScrollButtons( count() > 10 );
}

void MainTabWidget::tabRemoved(int index)
{
updateTabBarVisibility();

// Avoid bug in Qt 4.8.0
setUsesScrollButtons( count() > 10 );
}

void MainTabWidget::updateTabBarVisibility()
Expand Down

0 comments on commit a06df0a

Please sign in to comment.