DockWidget::setFloating(true): restore to previous floating position
When floating a dock widget we restore it to the last known floating position now
This commit is contained in:
@@ -264,6 +264,11 @@ void DockWidgetBase::setFloating(bool floats)
|
||||
} else {
|
||||
frame()->titleBar()->makeWindow();
|
||||
}
|
||||
|
||||
auto lastGeo = lastPositions().lastFloatingGeometry();
|
||||
if (lastGeo.isValid())
|
||||
window()->setGeometry(lastGeo);
|
||||
|
||||
} else {
|
||||
d->restoreToPreviousPosition();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user