75 HHNameEdit[i] = new QLineEdit(GBoxHedgehogs); |
75 HHNameEdit[i] = new QLineEdit(GBoxHedgehogs); |
76 HHNameEdit[i]->setMaxLength(64); |
76 HHNameEdit[i]->setMaxLength(64); |
77 HHNameEdit[i]->setMinimumWidth(120); |
77 HHNameEdit[i]->setMinimumWidth(120); |
78 HHNameEdit[i]->setFixedHeight(36); |
78 HHNameEdit[i]->setFixedHeight(36); |
79 HHNameEdit[i]->setWhatsThis(tr("This hedgehog's name")); |
79 HHNameEdit[i]->setWhatsThis(tr("This hedgehog's name")); |
80 HHNameEdit[i]->setStyleSheet("padding: 6px;"); |
80 HHNameEdit[i]->setStyleSheet("QLineEdit { padding: 6px; }"); |
81 GBHLayout->addWidget(HHNameEdit[i], i + 1, 1, 1, 2); |
81 GBHLayout->addWidget(HHNameEdit[i], i + 1, 1, 1, 2); |
82 |
82 |
83 btnRandomHogName[i] = addButton(":/res/dice.png", GBHLayout, i + 1, 5, 1, 1, true); |
83 btnRandomHogName[i] = addButton(":/res/dice.png", GBHLayout, i + 1, 5, 1, 1, true); |
84 btnRandomHogName[i]->setFixedHeight(HHNameEdit[i]->height()); |
84 btnRandomHogName[i]->setFixedHeight(HHNameEdit[i]->height()); |
85 btnRandomHogName[i]->setWhatsThis(tr("Randomize this hedgehog's name")); |
85 btnRandomHogName[i]->setWhatsThis(tr("Randomize this hedgehog's name")); |
126 GBTLayout->addWidget(tmpLabel, 4, 0); |
126 GBTLayout->addWidget(tmpLabel, 4, 0); |
127 |
127 |
128 TeamNameEdit = new QLineEdit(GBoxTeam); |
128 TeamNameEdit = new QLineEdit(GBoxTeam); |
129 TeamNameEdit->setMaxLength(64); |
129 TeamNameEdit->setMaxLength(64); |
130 TeamNameEdit->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); |
130 TeamNameEdit->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); |
|
131 TeamNameEdit->setStyleSheet("QLineEdit { padding: 6px; }"); |
131 GBTLayout->addWidget(TeamNameEdit, 0, 1, 1, 2); |
132 GBTLayout->addWidget(TeamNameEdit, 0, 1, 1, 2); |
132 vbox2->addWidget(GBoxTeam); |
133 vbox2->addWidget(GBoxTeam); |
133 |
134 |
134 CBTeamLvl = new QComboBox(GBoxTeam); |
135 CBTeamLvl = new QComboBox(GBoxTeam); |
135 CBTeamLvl->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); |
136 CBTeamLvl->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); |