mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-01-12 08:10:25 +08:00
Reverted changes that cause application crash
This commit is contained in:
parent
703a9b3e12
commit
c28a27c81c
@ -86,18 +86,6 @@ public:
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Delete widgets without parents in this layout
|
|
||||||
*/
|
|
||||||
~CDockAreaLayout()
|
|
||||||
{
|
|
||||||
for(auto Widget : m_Widgets)
|
|
||||||
{
|
|
||||||
if(!Widget->parent())
|
|
||||||
delete Widget;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the number of widgets in this layout
|
* Returns the number of widgets in this layout
|
||||||
*/
|
*/
|
||||||
@ -977,7 +965,9 @@ QSize CDockAreaWidget::minimumSizeHint() const
|
|||||||
void CDockAreaWidget::onDockWidgetFeaturesChanged()
|
void CDockAreaWidget::onDockWidgetFeaturesChanged()
|
||||||
{
|
{
|
||||||
if (d->TitleBar)
|
if (d->TitleBar)
|
||||||
|
{
|
||||||
d->updateTitleBarButtonStates();
|
d->updateTitleBarButtonStates();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -484,12 +484,6 @@ CDockManager::~CDockManager()
|
|||||||
{
|
{
|
||||||
delete FloatingWidget;
|
delete FloatingWidget;
|
||||||
}
|
}
|
||||||
auto DockWidgetsMap = d->DockWidgetsMap;
|
|
||||||
for(auto DockWidget : d->DockWidgetsMap)
|
|
||||||
{
|
|
||||||
if(!DockWidget->parent())
|
|
||||||
delete DockWidget;
|
|
||||||
}
|
|
||||||
delete d;
|
delete d;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -659,14 +653,7 @@ void CDockManager::showEvent(QShowEvent *event)
|
|||||||
|
|
||||||
for (auto FloatingWidget : d->UninitializedFloatingWidgets)
|
for (auto FloatingWidget : d->UninitializedFloatingWidgets)
|
||||||
{
|
{
|
||||||
for(CDockWidget* DockWidget : FloatingWidget->dockWidgets())
|
FloatingWidget->show();
|
||||||
{
|
|
||||||
if(!DockWidget->isClosed())
|
|
||||||
{
|
|
||||||
FloatingWidget->show();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
d->UninitializedFloatingWidgets.clear();
|
d->UninitializedFloatingWidgets.clear();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user