mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-01-24 05:22:06 +08:00
Removed superfluous deleteAutoHideWidgets() function from CDockContainerWidget
This commit is contained in:
parent
159579fb48
commit
716207f600
@ -752,7 +752,7 @@ void CMainWindow::onViewToggled(bool Open)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
qDebug() << DockWidget->objectName() << " viewToggled(" << Open << ")";
|
//qDebug() << DockWidget->objectName() << " viewToggled(" << Open << ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1338,12 +1338,6 @@ CDockContainerWidget::~CDockContainerWidget()
|
|||||||
d->DockManager->removeDockContainer(this);
|
d->DockManager->removeDockContainer(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto AutoHideWidgets = d->AutoHideWidgets;
|
|
||||||
for (auto AutohideWidget : AutoHideWidgets)
|
|
||||||
{
|
|
||||||
delete AutohideWidget;
|
|
||||||
}
|
|
||||||
|
|
||||||
delete d;
|
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<CAutoHideDockContainer*> CDockContainerWidget::autoHideWidgets() const
|
QList<CAutoHideDockContainer*> CDockContainerWidget::autoHideWidgets() const
|
||||||
{
|
{
|
||||||
|
@ -84,12 +84,6 @@ protected:
|
|||||||
*/
|
*/
|
||||||
virtual bool event(QEvent *e) override;
|
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
|
* Access function for the internal root splitter
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user