75 HHNameEdit[i]->setMaxLength(64); |
75 HHNameEdit[i]->setMaxLength(64); |
76 HHNameEdit[i]->setMinimumWidth(120); |
76 HHNameEdit[i]->setMinimumWidth(120); |
77 HHNameEdit[i]->setFixedHeight(36); |
77 HHNameEdit[i]->setFixedHeight(36); |
78 HHNameEdit[i]->setWhatsThis(tr("This hedgehog's name")); |
78 HHNameEdit[i]->setWhatsThis(tr("This hedgehog's name")); |
79 HHNameEdit[i]->setStyleSheet("padding: 6px;"); |
79 HHNameEdit[i]->setStyleSheet("padding: 6px;"); |
80 GBHLayout->addWidget(HHNameEdit[i], i + 1, 1, 1, 3); |
80 GBHLayout->addWidget(HHNameEdit[i], i + 1, 1, 1, 2); |
81 |
81 |
82 btnRandomHogName[i] = addButton(":/res/dice.png", GBHLayout, i + 1, 5, 1, 1, true); |
82 btnRandomHogName[i] = addButton(":/res/dice.png", GBHLayout, i + 1, 5, 1, 1, true); |
83 btnRandomHogName[i]->setFixedHeight(HHNameEdit[i]->height()); |
83 btnRandomHogName[i]->setFixedHeight(HHNameEdit[i]->height()); |
84 btnRandomHogName[i]->setWhatsThis(tr("Randomize this hedgehog's name")); |
84 btnRandomHogName[i]->setWhatsThis(tr("Randomize this hedgehog's name")); |
85 } |
85 } |
94 btnRandomNames->setText(tr("Random Names")); |
94 btnRandomNames->setText(tr("Random Names")); |
95 btnRandomNames->setStyleSheet("padding: 6px 10px;"); |
95 btnRandomNames->setStyleSheet("padding: 6px 10px;"); |
96 GBHLayout->addWidget(btnRandomNames, 9, 2, 1, 1, Qt::AlignCenter); |
96 GBHLayout->addWidget(btnRandomNames, 9, 2, 1, 1, Qt::AlignCenter); |
97 btnRandomNames->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); |
97 btnRandomNames->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); |
98 |
98 |
|
99 vbox1->addWidget(GBoxHedgehogs); |
|
100 |
99 btnRandomTeam = new QPushButton(); |
101 btnRandomTeam = new QPushButton(); |
100 btnRandomTeam->setText(tr("Random Team")); |
102 btnRandomTeam->setText(tr("Random Team")); |
101 btnRandomTeam->setStyleSheet("padding: 6px 10px;"); |
103 btnRandomTeam->setStyleSheet("padding: 6px 10px;"); |
102 GBHLayout->addWidget(btnRandomTeam, 9, 3, 1, 1, Qt::AlignCenter); |
|
103 btnRandomTeam->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); |
104 btnRandomTeam->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); |
104 |
105 vbox1->addWidget(btnRandomTeam, 0, Qt::AlignCenter); |
105 vbox1->addWidget(GBoxHedgehogs); |
|
106 |
106 |
107 GBoxTeam = new QGroupBox(this); |
107 GBoxTeam = new QGroupBox(this); |
108 GBoxTeam->setTitle(QGroupBox::tr("Team Settings")); |
108 GBoxTeam->setTitle(QGroupBox::tr("Team Settings")); |
109 GBoxTeam->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); |
109 GBoxTeam->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); |
110 QGridLayout * GBTLayout = new QGridLayout(GBoxTeam); |
110 QGridLayout * GBTLayout = new QGridLayout(GBoxTeam); |