mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-24 23:31:32 +08:00
Some small coding style fixes
This commit is contained in:
parent
1d90e8e823
commit
b15bc26a63
@ -759,7 +759,6 @@ void CDockManager::showEvent(QShowEvent *event)
|
||||
|
||||
// Fix Issue #380
|
||||
restoreHiddenFloatingWidgets();
|
||||
|
||||
if (d->UninitializedFloatingWidgets.empty())
|
||||
{
|
||||
return;
|
||||
@ -777,8 +776,15 @@ void CDockManager::showEvent(QShowEvent *event)
|
||||
d->UninitializedFloatingWidgets.clear();
|
||||
}
|
||||
|
||||
|
||||
//============================================================================
|
||||
void CDockManager::restoreHiddenFloatingWidgets()
|
||||
{
|
||||
if (d->HiddenFloatingWidgets.isEmpty())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Restore floating widgets that were hidden upon hideManagerAndFloatingWidgets
|
||||
for (auto FloatingWidget : d->HiddenFloatingWidgets)
|
||||
{
|
||||
@ -798,8 +804,10 @@ void CDockManager::restoreHiddenFloatingWidgets()
|
||||
}
|
||||
|
||||
if (hasDockWidgetVisible)
|
||||
{
|
||||
FloatingWidget->show();
|
||||
}
|
||||
}
|
||||
|
||||
d->HiddenFloatingWidgets.clear();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user