Disable tabs menu button when only single tab exists in a Dock area (#111)

This commit is contained in:
mvidelgauz
2020-02-06 16:21:19 +02:00
committed by GitHub
parent 72496ebd48
commit 474dd13855
9 changed files with 73 additions and 11 deletions

View File

@@ -283,7 +283,6 @@ struct MainWindowPrivate
void restorePerspectives();
};
//============================================================================
void MainWindowPrivate::createContent()
{
@@ -453,6 +452,9 @@ CMainWindow::CMainWindow(QWidget *parent) :
// uncomment the following line if you don't want disabled buttons to appear on DockArea's title bar
//CDockManager::setConfigFlag(CDockManager::DockAreaHideDisabledButtons, true);
// uncomment the following line if you want to show tabs menu button on DockArea's title bar only when there are more than one tab and at least of them has elided title
//CDockManager::setConfigFlag(CDockManager::DockAreaDynamicTabsMenuButtonVisibility, true);
// Now create the dock manager and its content
d->DockManager = new CDockManager(this);