Minor readability improv: replace bool with enum

CC issue #174
This commit is contained in:
Sergio Martins
2021-02-26 14:32:55 +00:00
parent d4d222ebd3
commit 610b85d01a
4 changed files with 11 additions and 4 deletions

View File

@@ -204,7 +204,7 @@ bool DockWidgetBase::setFloating(bool floats)
auto lastGeo = d->lastPositions().lastFloatingGeometry();
if (lastGeo.isValid()) {
if (auto fw = floatingWindow())
fw->setSuggestedGeometry(lastGeo, /*preserveCenter=*/true);
fw->setSuggestedGeometry(lastGeo, SuggestedGeometryHint_PreserveCenter);
}
return true;
} else {