Properly implemented flag DockAreaHasCloseButton

This commit is contained in:
Uwe Kindler
2019-09-12 21:24:48 +02:00
parent bed99eacc2
commit 2c7764ecf7
2 changed files with 6 additions and 3 deletions

View File

@@ -181,7 +181,10 @@ void DockAreaTitleBarPrivate::createButtons()
#endif
CloseButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
CloseButton->setIconSize(QSize(16, 16));
TopLayout->addWidget(CloseButton, 0);
if (testConfigFlag(CDockManager::DockAreaHasCloseButton))
{
TopLayout->addWidget(CloseButton, 0);
}
_this->connect(CloseButton, SIGNAL(clicked()), SLOT(onCloseButtonClicked()));
}