1
0
mirror of https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git synced 2025-03-16 02:59:51 +08:00

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; bool Floating = vFloating.isValid() ? vFloating.toBool() : true;
auto DockWidget = d->createEditorWidget(); auto DockWidget = d->createEditorWidget();
DockWidget->setFeature(ads::CDockWidget::DockWidgetDeleteOnClose, true); DockWidget->setFeature(ads::CDockWidget::DockWidgetDeleteOnClose, true);
DockWidget->setFeature(ads::CDockWidget::DockWidgetForceCloseWithArea, true);
connect(DockWidget, SIGNAL(closeRequested()), SLOT(onEditorCloseRequested())); connect(DockWidget, SIGNAL(closeRequested()), SLOT(onEditorCloseRequested()));
if (Floating) if (Floating)