Improve GUI by removing some blank spaces around grids and center widgets
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user