mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
[PrintingSelector] Reduce spacing (#6574)
* [PrintingSelector] Reduce spacing * align top * reduce spacing in flowLayout
This commit is contained in:
parent
5cc5767c87
commit
1b29e0bfa8
2 changed files with 6 additions and 2 deletions
|
|
@ -30,6 +30,8 @@ PrintingSelectorCardDisplayWidget::PrintingSelectorCardDisplayWidget(QWidget *pa
|
|||
: QWidget(parent), rootCard(rootCard)
|
||||
{
|
||||
layout = new QVBoxLayout(this);
|
||||
layout->setContentsMargins(5, 5, 5, 5);
|
||||
layout->setSpacing(3);
|
||||
setLayout(layout);
|
||||
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ SetNameAndCollectorsNumberDisplayWidget::SetNameAndCollectorsNumberDisplayWidget
|
|||
{
|
||||
// Set up the layout for the widget
|
||||
layout = new QVBoxLayout(this);
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
layout->setSpacing(1);
|
||||
setLayout(layout);
|
||||
|
||||
// Set the widget's size policy and minimum size
|
||||
|
|
@ -26,12 +28,12 @@ SetNameAndCollectorsNumberDisplayWidget::SetNameAndCollectorsNumberDisplayWidget
|
|||
// Create and configure the set name label
|
||||
setName = new QLabel(_setName);
|
||||
setName->setWordWrap(true);
|
||||
setName->setAlignment(Qt::AlignHCenter | Qt::AlignBottom);
|
||||
setName->setAlignment(Qt::AlignHCenter | Qt::AlignTop);
|
||||
setName->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Expanding);
|
||||
|
||||
// Create and configure the collectors number label
|
||||
collectorsNumber = new QLabel(_collectorsNumber);
|
||||
collectorsNumber->setAlignment(Qt::AlignHCenter | Qt::AlignBottom);
|
||||
collectorsNumber->setAlignment(Qt::AlignHCenter | Qt::AlignTop);
|
||||
collectorsNumber->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
|
||||
|
||||
// Store the card size slider and connect its signal to the font size adjustment slot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue