Improve GUI by removing some blank spaces around grids and center widgets

This commit is contained in:
2017-10-15 11:36:27 +02:00
parent 2b664c3b4f
commit b86b934e75
9 changed files with 136 additions and 41 deletions

View File

@@ -50,8 +50,7 @@ SearchPanel::SearchPanel(KissCount* kiss, wxUI *parent, bool lowResolution) :
vbox->addWidget(_searchButton);
_grid = new GridAccount(_kiss, this, false, false, true);
hbox->addWidget(_grid);
_grid->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
_changeAccountButton = new QPushButton(_("Change account"));
_changeCategoryButton = new QPushButton(_("Change category"));
@@ -80,9 +79,12 @@ SearchPanel::SearchPanel(KissCount* kiss, wxUI *parent, bool lowResolution) :
vbox2->addWidget(_changeTagButton);
vbox2->addWidget(_renameButton);
hbox->addStretch();
hbox->addLayout(vbox2);
hbox->addWidget(_costRepartitionBanner);
hbox->addStretch();
hbox->addWidget(_grid);
hbox->addStretch();
hbox->addWidget(_costRepartitionBanner, 2);
vbox->addLayout(hbox, 2);
}