reduce vertical spacing in PrintingSelector (#5342)

This commit is contained in:
RickyRister 2024-12-27 00:35:38 -08:00 committed by GitHub
parent 7e9bd88eb4
commit 83db00d7a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 5 additions and 1 deletions

View file

@ -13,6 +13,7 @@ CardSizeWidget::CardSizeWidget(QWidget *parent, FlowWidget *flowWidget, int defa
: parent(parent), flowWidget(flowWidget)
{
cardSizeLayout = new QHBoxLayout(this);
cardSizeLayout->setContentsMargins(9, 0, 9, 0);
setLayout(cardSizeLayout);
cardSizeLabel = new QLabel(tr("Card Size"), this);

View file

@ -11,6 +11,7 @@
PrintingSelectorCardSearchWidget::PrintingSelectorCardSearchWidget(PrintingSelector *parent) : parent(parent)
{
layout = new QHBoxLayout(this);
layout->setContentsMargins(9, 0, 9, 0);
setLayout(layout);
searchBar = new QLineEdit(this);

View file

@ -11,6 +11,7 @@
PrintingSelectorCardSelectionWidget::PrintingSelectorCardSelectionWidget(PrintingSelector *parent) : parent(parent)
{
cardSelectionBarLayout = new QHBoxLayout(this);
cardSelectionBarLayout->setContentsMargins(9, 0, 9, 0);
previousCardButton = new QPushButton(this);
previousCardButton->setText(tr("Previous Card in Deck"));

View file

@ -19,6 +19,7 @@ const QStringList PrintingSelectorCardSortingWidget::SORT_OPTIONS = {SORT_OPTION
PrintingSelectorCardSortingWidget::PrintingSelectorCardSortingWidget(PrintingSelector *parent) : parent(parent)
{
sortToolBar = new QHBoxLayout(this);
sortToolBar->setContentsMargins(9, 0, 9, 0);
sortOptionsSelector = new QComboBox(this);
sortOptionsSelector->addItems(SORT_OPTIONS);

View file

@ -17,7 +17,7 @@ PrintingSelectorViewOptionsToolbarWidget::PrintingSelectorViewOptionsToolbarWidg
{
// Set up layout for the widget
layout = new QVBoxLayout();
layout->setContentsMargins(0, 0, 0, 0);
layout->setContentsMargins(9, 0, 9, 0);
layout->setSpacing(0);
setLayout(layout);