UI Nits: Choose Athlete Dialog Buttons

.. order of New, Cancel, Open and a bit of stretch
to stop ugly elongated buttons.
This commit is contained in:
Mark Liversedge
2013-01-07 20:27:04 +00:00
parent 97fd43818a
commit 502db4052a

View File

@@ -59,10 +59,11 @@ ChooseCyclistDialog::ChooseCyclistDialog(const QDir &home, bool allowNew) :
this, SLOT(accept()));
QHBoxLayout *buttonLayout = new QHBoxLayout;
buttonLayout->addWidget(okButton);
if (allowNew)
buttonLayout->addWidget(newButton);
buttonLayout->addStretch();
buttonLayout->addWidget(cancelButton);
buttonLayout->addWidget(okButton);
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->addWidget(listWidget);