# HG changeset patch # User Wuzzy # Date 1492111352 -7200 # Node ID d23695f9629073c42236b6d0af6f1853ae0a5af9 # Parent 07f67ee424dcaf37580b5158a57879f2bd54b0c1 Move random team button of of team members box diff -r 07f67ee424dc -r d23695f96290 QTfrontend/ui/page/pageeditteam.cpp --- a/QTfrontend/ui/page/pageeditteam.cpp Thu Apr 13 18:48:06 2017 +0200 +++ b/QTfrontend/ui/page/pageeditteam.cpp Thu Apr 13 21:22:32 2017 +0200 @@ -77,7 +77,7 @@ HHNameEdit[i]->setFixedHeight(36); HHNameEdit[i]->setWhatsThis(tr("This hedgehog's name")); HHNameEdit[i]->setStyleSheet("padding: 6px;"); - GBHLayout->addWidget(HHNameEdit[i], i + 1, 1, 1, 3); + GBHLayout->addWidget(HHNameEdit[i], i + 1, 1, 1, 2); btnRandomHogName[i] = addButton(":/res/dice.png", GBHLayout, i + 1, 5, 1, 1, true); btnRandomHogName[i]->setFixedHeight(HHNameEdit[i]->height()); @@ -96,13 +96,13 @@ GBHLayout->addWidget(btnRandomNames, 9, 2, 1, 1, Qt::AlignCenter); btnRandomNames->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); + vbox1->addWidget(GBoxHedgehogs); + btnRandomTeam = new QPushButton(); btnRandomTeam->setText(tr("Random Team")); btnRandomTeam->setStyleSheet("padding: 6px 10px;"); - GBHLayout->addWidget(btnRandomTeam, 9, 3, 1, 1, Qt::AlignCenter); btnRandomTeam->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - - vbox1->addWidget(GBoxHedgehogs); + vbox1->addWidget(btnRandomTeam, 0, Qt::AlignCenter); GBoxTeam = new QGroupBox(this); GBoxTeam->setTitle(QGroupBox::tr("Team Settings"));