mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
Reduce spacing in visual deck storage (#5465)
* move thing * reduce spacing
This commit is contained in:
parent
d2c2128e9b
commit
81662b7fec
4 changed files with 8 additions and 4 deletions
|
|
@ -11,7 +11,7 @@
|
|||
VisualDeckStorageSearchWidget::VisualDeckStorageSearchWidget(VisualDeckStorageWidget *parent) : parent(parent)
|
||||
{
|
||||
layout = new QHBoxLayout(this);
|
||||
layout->setContentsMargins(9, 0, 9, 0);
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
setLayout(layout);
|
||||
|
||||
searchBar = new QLineEdit(this);
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ VisualDeckStorageSortWidget::VisualDeckStorageSortWidget(VisualDeckStorageWidget
|
|||
: parent(parent), sortOrder(Alphabetical)
|
||||
{
|
||||
layout = new QHBoxLayout(this);
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
setLayout(layout);
|
||||
|
||||
// Initialize the ComboBox
|
||||
|
|
|
|||
|
|
@ -16,8 +16,7 @@ VisualDeckStorageTagFilterWidget::VisualDeckStorageTagFilterWidget(VisualDeckSto
|
|||
|
||||
// Create layout
|
||||
auto *layout = new QHBoxLayout(this);
|
||||
layout->setContentsMargins(5, 5, 5, 5);
|
||||
layout->setSpacing(5);
|
||||
layout->setContentsMargins(5, 0, 5, 0);
|
||||
|
||||
setFixedHeight(100);
|
||||
|
||||
|
|
|
|||
|
|
@ -19,14 +19,18 @@ VisualDeckStorageWidget::VisualDeckStorageWidget(QWidget *parent) : QWidget(pare
|
|||
deckListModel->setObjectName("visualDeckModel");
|
||||
|
||||
layout = new QVBoxLayout();
|
||||
layout->setSpacing(0);
|
||||
layout->setContentsMargins(9, 0, 9, 5);
|
||||
setLayout(layout);
|
||||
|
||||
searchAndSortLayout = new QHBoxLayout();
|
||||
searchAndSortLayout->setSpacing(3);
|
||||
searchAndSortLayout->setContentsMargins(9, 0, 9, 0);
|
||||
|
||||
deckPreviewColorIdentityFilterWidget = new DeckPreviewColorIdentityFilterWidget(this);
|
||||
sortWidget = new VisualDeckStorageSortWidget(this);
|
||||
searchWidget = new VisualDeckStorageSearchWidget(this);
|
||||
tagFilterWidget = new VisualDeckStorageTagFilterWidget(this);
|
||||
deckPreviewColorIdentityFilterWidget = new DeckPreviewColorIdentityFilterWidget(this);
|
||||
|
||||
searchAndSortLayout->addWidget(deckPreviewColorIdentityFilterWidget);
|
||||
searchAndSortLayout->addWidget(sortWidget);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue