Skip to content
Browse files

Avoid bug with tabs in Qt 4.8.0

  • Loading branch information...
1 parent 03d1dfe commit a06df0a336f3509a1f97b75a2490d5d7586ee979 @Abs62 committed Feb 15, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 maintabwidget.cc
View
6 maintabwidget.cc
@@ -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()

0 comments on commit a06df0a

Please sign in to comment.
Something went wrong with that request. Please try again.