diff --git a/demo/MainWindow.cpp b/demo/MainWindow.cpp index 71bd13d..e0394c4 100644 --- a/demo/MainWindow.cpp +++ b/demo/MainWindow.cpp @@ -752,7 +752,7 @@ void CMainWindow::onViewToggled(bool Open) return; } - qDebug() << DockWidget->objectName() << " viewToggled(" << Open << ")"; + //qDebug() << DockWidget->objectName() << " viewToggled(" << Open << ")"; } diff --git a/src/DockContainerWidget.cpp b/src/DockContainerWidget.cpp index b156c2f..a90f990 100644 --- a/src/DockContainerWidget.cpp +++ b/src/DockContainerWidget.cpp @@ -1338,12 +1338,6 @@ CDockContainerWidget::~CDockContainerWidget() d->DockManager->removeDockContainer(this); } - auto AutoHideWidgets = d->AutoHideWidgets; - for (auto AutohideWidget : AutoHideWidgets) - { - delete AutohideWidget; - } - delete d; } @@ -1430,17 +1424,6 @@ bool CDockContainerWidget::event(QEvent *e) } -//============================================================================ -void CDockContainerWidget::deleteAutoHideWidgets() -{ - for (auto AutohideWidget : d->AutoHideWidgets) - { - AutohideWidget->cleanupAndDelete(); - } - d->AutoHideWidgets.clear(); -} - - //============================================================================ QList CDockContainerWidget::autoHideWidgets() const { diff --git a/src/DockContainerWidget.h b/src/DockContainerWidget.h index 6153cd7..247c698 100644 --- a/src/DockContainerWidget.h +++ b/src/DockContainerWidget.h @@ -84,12 +84,6 @@ protected: */ virtual bool event(QEvent *e) override; - /* - * Delete function for resetting the auto hide widget list - * Used during restore - */ - void deleteAutoHideWidgets(); - /** * Access function for the internal root splitter */