Explicitly use QTabBar scroll buttons

Even though QTabBar's property usesScrollButtons is set to true in Qt
Designer, it is not set explicitly in generated C++ code. The default
value is style dependent, which caused the scroll buttons to be visibile
everywhere except Mac OS/X.

refs #683
This commit is contained in:
Roland Winklmeier
2016-08-13 15:40:27 +02:00
committed by Mathew Sutcliffe
parent c0a898c6c9
commit 10810f5003
7 changed files with 6 additions and 2 deletions

View File

@@ -65,6 +65,7 @@ namespace BlackGui
// fix style
this->tabBar()->setExpanding(false);
this->tabBar()->setUsesScrollButtons(true);
// validators
CUpperCaseValidator *ucv = new CUpperCaseValidator(this);