Removed wrong visibility initialisation of titlebar close button, added hideEmptyParentSplitters() function to properly hide tree of empty parent splitters if DockArea or DockWidget is removed,
This commit is contained in:
@@ -158,9 +158,6 @@ void DockAreaTitleBarPrivate::createButtons()
|
||||
CloseButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
|
||||
TopLayout->addWidget(CloseButton, 0);
|
||||
_this->connect(CloseButton, SIGNAL(clicked()), SLOT(onCloseButtonClicked()));
|
||||
|
||||
CloseButton->setEnabled(testConfigFlag(CDockManager::DockAreaHasCloseButton));
|
||||
CloseButton->setVisible(CloseButton->isEnabled());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user