From f3d32399e5ecf5e25ae360fd85815321a6252e7b Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Tue, 13 Oct 2020 20:55:09 +0200 Subject: [PATCH] Added ads::CDockWidget::DockWidgetForceCloseWithArea test to demo/MainWindow.cpp --- demo/MainWindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/demo/MainWindow.cpp b/demo/MainWindow.cpp index 47add8f..9520830 100644 --- a/demo/MainWindow.cpp +++ b/demo/MainWindow.cpp @@ -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)