mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 08:34:52 -07:00
clean up freeDocksSize in tabs with dockWidgets (#6593)
This commit is contained in:
parent
edc8691731
commit
1eb6027443
3 changed files with 9 additions and 28 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue