clean up freeDocksSize in tabs with dockWidgets (#6593)

This commit is contained in:
RickyRister 2026-02-08 05:07:40 -08:00 committed by GitHub
parent edc8691731
commit 1eb6027443
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 28 deletions

View file

@ -190,12 +190,9 @@ void TabDeckEditor::restartLayout()
/** @brief Frees dock sizes to allow flexible resizing. */
void TabDeckEditor::freeDocksSize()
{
const QSize minSize(100, 100);
const QSize maxSize(5000, 5000);
for (auto dockWidget : dockToActions.keys()) {
dockWidget->setMinimumSize(minSize);
dockWidget->setMaximumSize(maxSize);
dockWidget->setMinimumSize(100, 100);
dockWidget->setMaximumSize(5000, 5000);
}
}