QTfrontend/pages.cpp
changeset 1288 cea4a8f52f5a
parent 1287 4a0cbcbe3521
child 1290 3cb7f6b5000e
--- a/QTfrontend/pages.cpp	Sun Sep 28 08:26:18 2008 +0000
+++ b/QTfrontend/pages.cpp	Sun Sep 28 08:28:32 2008 +0000
@@ -111,15 +111,6 @@
 	page1Layout->addLayout(vbox2);
 	page1Layout->addLayout(vbox3);
 	
-	GBoxTeam = new QGroupBox(this);
-	GBoxTeam->setTitle(QGroupBox::tr("Team"));
-	GBoxTeam->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
-	QGridLayout * GBTLayout = new QGridLayout(GBoxTeam);
-	TeamNameEdit = new QLineEdit(GBoxTeam);
-	TeamNameEdit->setMaxLength(64);
-	GBTLayout->addWidget(TeamNameEdit, 0, 0, 1, 0);
-	vbox1->addWidget(GBoxTeam);
-
 	GBoxHedgehogs = new QGroupBox(this);
 	GBoxHedgehogs->setTitle(QGroupBox::tr("Team Members"));
 	GBoxHedgehogs->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
@@ -144,22 +135,15 @@
 	vbox1->addWidget(GBoxHedgehogs);
 
 
-	GBoxGrave = new QGroupBox(this);
-	GBoxGrave->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
-	GBoxGrave->setTitle(QGroupBox::tr("Grave"));
-	QGridLayout * GBGLayout = new QGridLayout(GBoxGrave);
-	CBGrave = new QComboBox(GBoxGrave);
-	CBGrave->setMaxCount(65535);
-	CBGrave->setIconSize(QSize(32, 32));
-	GBGLayout->addWidget(CBGrave, 0, 0, 1, 3);
-	vbox2->addWidget(GBoxGrave);
+	GBoxTeam = new QGroupBox(this);
+	GBoxTeam->setTitle(QGroupBox::tr("Team"));
+	GBoxTeam->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
+	QVBoxLayout * GBTLayout = new QVBoxLayout(GBoxTeam);
+	TeamNameEdit = new QLineEdit(GBoxTeam);
+	TeamNameEdit->setMaxLength(64);
+	GBTLayout->addWidget(TeamNameEdit);
+	vbox2->addWidget(GBoxTeam);
 	
-	//page1Layout->addWidget(new QWidget(), 3, 1, 1, 1);
-
-	GBoxTeamLvl = new QGroupBox(this);
-	GBoxTeamLvl->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
-	GBoxTeamLvl->setTitle(QGroupBox::tr("Team level"));
-	QGridLayout * GBTLLayout = new QGridLayout(GBoxTeamLvl);
 	CBTeamLvl = new QComboBox(GBoxTeamLvl);
 	CBTeamLvl->setIconSize(QSize(32, 32));
 	CBTeamLvl->addItem(QIcon(":/res/botlevels/0.png"), QComboBox::tr("Human"));
@@ -168,10 +152,13 @@
 				QIcon(QString(":/res/botlevels/%1.png").arg(6 - i)),
 				QString("%1 %2").arg(QComboBox::tr("Level")).arg(i)
 				);
+	GBTLayout->addWidget(CBTeamLvl);
 	
-	GBTLLayout->addWidget(CBTeamLvl, 0, 0, 1, 3);
-	vbox2->addWidget(GBoxTeamLvl);
-
+	CBGrave = new QComboBox(GBoxGrave);
+	CBGrave->setMaxCount(65535);
+	CBGrave->setIconSize(QSize(32, 32));
+	GBTLayout->addWidget(CBGrave);
+	
 	GBoxFort = new QGroupBox(this);
 	GBoxFort->setTitle(QGroupBox::tr("Fort"));
 	QGridLayout * GBFLayout = new QGridLayout(GBoxFort);