mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-03 12:03:55 -07:00
reduce vertical spacing in PrintingSelector (#5342)
This commit is contained in:
parent
7e9bd88eb4
commit
83db00d7a3
5 changed files with 5 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ CardSizeWidget::CardSizeWidget(QWidget *parent, FlowWidget *flowWidget, int defa
|
||||||
: parent(parent), flowWidget(flowWidget)
|
: parent(parent), flowWidget(flowWidget)
|
||||||
{
|
{
|
||||||
cardSizeLayout = new QHBoxLayout(this);
|
cardSizeLayout = new QHBoxLayout(this);
|
||||||
|
cardSizeLayout->setContentsMargins(9, 0, 9, 0);
|
||||||
setLayout(cardSizeLayout);
|
setLayout(cardSizeLayout);
|
||||||
|
|
||||||
cardSizeLabel = new QLabel(tr("Card Size"), this);
|
cardSizeLabel = new QLabel(tr("Card Size"), this);
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
PrintingSelectorCardSearchWidget::PrintingSelectorCardSearchWidget(PrintingSelector *parent) : parent(parent)
|
PrintingSelectorCardSearchWidget::PrintingSelectorCardSearchWidget(PrintingSelector *parent) : parent(parent)
|
||||||
{
|
{
|
||||||
layout = new QHBoxLayout(this);
|
layout = new QHBoxLayout(this);
|
||||||
|
layout->setContentsMargins(9, 0, 9, 0);
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
|
|
||||||
searchBar = new QLineEdit(this);
|
searchBar = new QLineEdit(this);
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
PrintingSelectorCardSelectionWidget::PrintingSelectorCardSelectionWidget(PrintingSelector *parent) : parent(parent)
|
PrintingSelectorCardSelectionWidget::PrintingSelectorCardSelectionWidget(PrintingSelector *parent) : parent(parent)
|
||||||
{
|
{
|
||||||
cardSelectionBarLayout = new QHBoxLayout(this);
|
cardSelectionBarLayout = new QHBoxLayout(this);
|
||||||
|
cardSelectionBarLayout->setContentsMargins(9, 0, 9, 0);
|
||||||
|
|
||||||
previousCardButton = new QPushButton(this);
|
previousCardButton = new QPushButton(this);
|
||||||
previousCardButton->setText(tr("Previous Card in Deck"));
|
previousCardButton->setText(tr("Previous Card in Deck"));
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ const QStringList PrintingSelectorCardSortingWidget::SORT_OPTIONS = {SORT_OPTION
|
||||||
PrintingSelectorCardSortingWidget::PrintingSelectorCardSortingWidget(PrintingSelector *parent) : parent(parent)
|
PrintingSelectorCardSortingWidget::PrintingSelectorCardSortingWidget(PrintingSelector *parent) : parent(parent)
|
||||||
{
|
{
|
||||||
sortToolBar = new QHBoxLayout(this);
|
sortToolBar = new QHBoxLayout(this);
|
||||||
|
sortToolBar->setContentsMargins(9, 0, 9, 0);
|
||||||
|
|
||||||
sortOptionsSelector = new QComboBox(this);
|
sortOptionsSelector = new QComboBox(this);
|
||||||
sortOptionsSelector->addItems(SORT_OPTIONS);
|
sortOptionsSelector->addItems(SORT_OPTIONS);
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ PrintingSelectorViewOptionsToolbarWidget::PrintingSelectorViewOptionsToolbarWidg
|
||||||
{
|
{
|
||||||
// Set up layout for the widget
|
// Set up layout for the widget
|
||||||
layout = new QVBoxLayout();
|
layout = new QVBoxLayout();
|
||||||
layout->setContentsMargins(0, 0, 0, 0);
|
layout->setContentsMargins(9, 0, 9, 0);
|
||||||
layout->setSpacing(0);
|
layout->setSpacing(0);
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue