Added ads::CDockWidget::DockWidgetForceCloseWithArea test to demo/MainWindow.cpp

This commit is contained in:
Uwe Kindler 2020-10-13 20:55:09 +02:00
parent b320bb17d1
commit f3d32399e5

View File

@ -712,6 +712,7 @@ void CMainWindow::createEditor()
bool Floating = vFloating.isValid() ? vFloating.toBool() : true;
auto DockWidget = d->createEditorWidget();
DockWidget->setFeature(ads::CDockWidget::DockWidgetDeleteOnClose, true);
DockWidget->setFeature(ads::CDockWidget::DockWidgetForceCloseWithArea, true);
connect(DockWidget, SIGNAL(closeRequested()), SLOT(onEditorCloseRequested()));
if (Floating)