From 5f0e955644328cbf160cb50464856c5ae162f669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= <44814898+BruebachL@users.noreply.github.com> Date: Tue, 10 Nov 2026 09:59:15 +0100 Subject: [PATCH] Use the shared layout helper in the token tabs Replace the hand-built zero-margin layouts with QtUtils::makeLayout, which is the helper the printing selector already uses. --- cockatrice/src/game_graphics/dialogs/dlg_create_token.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cockatrice/src/game_graphics/dialogs/dlg_create_token.cpp b/cockatrice/src/game_graphics/dialogs/dlg_create_token.cpp index 5161cc0d1..bb972a197 100644 --- a/cockatrice/src/game_graphics/dialogs/dlg_create_token.cpp +++ b/cockatrice/src/game_graphics/dialogs/dlg_create_token.cpp @@ -38,6 +38,7 @@ #include #include #include +#include #include #include @@ -156,16 +157,14 @@ DlgCreateToken::DlgCreateToken(const QStringList &_predefinedTokens, QWidget *pa auto *tokenChoosePage = new QWidget; tokenChoosePage->setObjectName("tokenChoosePage"); - auto *tokenChooseLayout = new QVBoxLayout(tokenChoosePage); - tokenChooseLayout->setContentsMargins(0, 0, 0, 0); + auto *tokenChooseLayout = QtUtils::makeLayout(tokenChoosePage); tokenChooseLayout->addWidget(chooseTokenFromAllRadioButton); tokenChooseLayout->addWidget(chooseTokenFromDeckRadioButton); tokenChooseLayout->addWidget(chooseTokenView); auto *printingsPage = new QWidget; printingsPage->setObjectName("tokenPrintingsPage"); - auto *printingsLayout = new QVBoxLayout(printingsPage); - printingsLayout->setContentsMargins(0, 0, 0, 0); + auto *printingsLayout = QtUtils::makeLayout(printingsPage); printingSelector = new PrintingSelector(printingsPage, &printingSelectorHost); printingSelector->setObjectName("tokenPrintingSelector"); printingsLayout->addWidget(printingSelector);