mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-04-01 02:42:39 +08:00
Fixed issue #429 - Raise floating widget on toggleView() request
This commit is contained in:
parent
0e566cb8a3
commit
bedd25021c
@ -555,6 +555,7 @@ void CDockWidget::toggleView(bool Open)
|
|||||||
{
|
{
|
||||||
Open = true;
|
Open = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the dock widget state is different, then we really need to toggle
|
// If the dock widget state is different, then we really need to toggle
|
||||||
// the state. If we are in the right state, then we simply make this
|
// the state. If we are in the right state, then we simply make this
|
||||||
// dock widget the current dock widget
|
// dock widget the current dock widget
|
||||||
@ -564,7 +565,7 @@ void CDockWidget::toggleView(bool Open)
|
|||||||
}
|
}
|
||||||
else if (Open && d->DockArea)
|
else if (Open && d->DockArea)
|
||||||
{
|
{
|
||||||
d->DockArea->setCurrentDockWidget(this);
|
raise();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user