mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-02 03:23:56 -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)
|
VisualDeckStorageSearchWidget::VisualDeckStorageSearchWidget(VisualDeckStorageWidget *parent) : parent(parent)
|
||||||
{
|
{
|
||||||
layout = new QHBoxLayout(this);
|
layout = new QHBoxLayout(this);
|
||||||
layout->setContentsMargins(9, 0, 9, 0);
|
layout->setContentsMargins(0, 0, 0, 0);
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
|
|
||||||
searchBar = new QLineEdit(this);
|
searchBar = new QLineEdit(this);
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ VisualDeckStorageSortWidget::VisualDeckStorageSortWidget(VisualDeckStorageWidget
|
||||||
: parent(parent), sortOrder(Alphabetical)
|
: parent(parent), sortOrder(Alphabetical)
|
||||||
{
|
{
|
||||||
layout = new QHBoxLayout(this);
|
layout = new QHBoxLayout(this);
|
||||||
|
layout->setContentsMargins(0, 0, 0, 0);
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
|
|
||||||
// Initialize the ComboBox
|
// Initialize the ComboBox
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,7 @@ VisualDeckStorageTagFilterWidget::VisualDeckStorageTagFilterWidget(VisualDeckSto
|
||||||
|
|
||||||
// Create layout
|
// Create layout
|
||||||
auto *layout = new QHBoxLayout(this);
|
auto *layout = new QHBoxLayout(this);
|
||||||
layout->setContentsMargins(5, 5, 5, 5);
|
layout->setContentsMargins(5, 0, 5, 0);
|
||||||
layout->setSpacing(5);
|
|
||||||
|
|
||||||
setFixedHeight(100);
|
setFixedHeight(100);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,14 +19,18 @@ VisualDeckStorageWidget::VisualDeckStorageWidget(QWidget *parent) : QWidget(pare
|
||||||
deckListModel->setObjectName("visualDeckModel");
|
deckListModel->setObjectName("visualDeckModel");
|
||||||
|
|
||||||
layout = new QVBoxLayout();
|
layout = new QVBoxLayout();
|
||||||
|
layout->setSpacing(0);
|
||||||
|
layout->setContentsMargins(9, 0, 9, 5);
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
|
|
||||||
searchAndSortLayout = new QHBoxLayout();
|
searchAndSortLayout = new QHBoxLayout();
|
||||||
|
searchAndSortLayout->setSpacing(3);
|
||||||
|
searchAndSortLayout->setContentsMargins(9, 0, 9, 0);
|
||||||
|
|
||||||
|
deckPreviewColorIdentityFilterWidget = new DeckPreviewColorIdentityFilterWidget(this);
|
||||||
sortWidget = new VisualDeckStorageSortWidget(this);
|
sortWidget = new VisualDeckStorageSortWidget(this);
|
||||||
searchWidget = new VisualDeckStorageSearchWidget(this);
|
searchWidget = new VisualDeckStorageSearchWidget(this);
|
||||||
tagFilterWidget = new VisualDeckStorageTagFilterWidget(this);
|
tagFilterWidget = new VisualDeckStorageTagFilterWidget(this);
|
||||||
deckPreviewColorIdentityFilterWidget = new DeckPreviewColorIdentityFilterWidget(this);
|
|
||||||
|
|
||||||
searchAndSortLayout->addWidget(deckPreviewColorIdentityFilterWidget);
|
searchAndSortLayout->addWidget(deckPreviewColorIdentityFilterWidget);
|
||||||
searchAndSortLayout->addWidget(sortWidget);
|
searchAndSortLayout->addWidget(sortWidget);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue