QTfrontend/pages.cpp
changeset 1198 b600b0d9408c
parent 1194 32e854874df2
child 1199 543d1268847b
--- a/QTfrontend/pages.cpp	Tue Aug 12 10:02:34 2008 +0000
+++ b/QTfrontend/pages.cpp	Tue Aug 12 12:05:52 2008 +0000
@@ -270,20 +270,41 @@
 	pageLayout->setRowStretch(3, 100);
 	pageLayout->setRowStretch(4, 0);
 
-	teamsBox = new IconedGroupBox(this);
-	teamsBox->setIcon(QIcon(":/res/teamicon.png"));
-	teamsBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
-	teamsBox->setTitle(QGroupBox::tr("Teams"));
-	pageLayout->addWidget(teamsBox, 0, 0, 1, 3);
+
+	QGroupBox * gbTwoBoxes = new QGroupBox(this);
+	pageLayout->addWidget(gbTwoBoxes, 0, 0, 1, 3);
+	QHBoxLayout * gbTBLayout = new QHBoxLayout(gbTwoBoxes);
+	{
+		teamsBox = new IconedGroupBox(this);
+		teamsBox->setIcon(QIcon(":/res/teamicon.png"));
+		teamsBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
+		teamsBox->setTitle(QGroupBox::tr("Teams"));
+
+		QGridLayout * GBTlayout = new QGridLayout(teamsBox);
+
+		BtnNewTeam = addButton(tr("New team"), GBTlayout, 1, 0);
+
+		CBTeamName = new QComboBox(teamsBox);
+		GBTlayout->addWidget(CBTeamName, 0, 0, 1, 2);
 
-	QGridLayout * GBTlayout = new QGridLayout(teamsBox);
-
-	BtnNewTeam = addButton(tr("New team"), GBTlayout, 0, 0);
+		BtnEditTeam = addButton(tr("Edit team"), GBTlayout, 1, 1);
+		pageLayout->addWidget(teamsBox, 0, 0, 1, 3);
+		gbTBLayout->addWidget(teamsBox);
+	}
 
-	CBTeamName = new QComboBox(teamsBox);
-	GBTlayout->addWidget(CBTeamName, 0, 1);
+	{
+		IconedGroupBox* groupWeapons = new IconedGroupBox(this);
+		groupWeapons->setIcon(QIcon(":/res/weaponsicon.png"));
+		groupWeapons->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
+		groupWeapons->setTitle(QGroupBox::tr("Weapons"));
+		QGridLayout * WeaponsLayout = new QGridLayout(groupWeapons);
 
-	BtnEditTeam = addButton(tr("Edit team"), GBTlayout, 0, 2);
+		WeaponsButt = addButton(tr("Weapons set"), WeaponsLayout, 1, 0);
+		WeaponsName = new QComboBox(this);
+		WeaponsLayout->addWidget(WeaponsName, 0, 0, 1, 2);
+		WeaponEdit = addButton(tr("Edit"), WeaponsLayout, 1, 1);
+		gbTBLayout->addWidget(groupWeapons);
+	}
 
 	AGGroupBox = new IconedGroupBox(this);
 	AGGroupBox->setIcon(QIcon(":/res/graphicsicon.png"));
@@ -340,18 +361,6 @@
 
 	BtnBack = addButton(":/res/Exit.png", pageLayout, 4, 0, true);
 
-	IconedGroupBox* groupWeapons = new IconedGroupBox(this);
-	groupWeapons->setIcon(QIcon(":/res/weaponsicon.png"));
-	groupWeapons->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
-	groupWeapons->setTitle(QGroupBox::tr("Weapons"));
-	pageLayout->addWidget(groupWeapons, 1, 0, 1, 3);
-	QGridLayout * WeaponsLayout = new QGridLayout(groupWeapons);
-
-	WeaponsButt = addButton(tr("Weapons set"), WeaponsLayout, 0, 0);
-	WeaponsName = new QComboBox(this);
-	WeaponsLayout->addWidget(WeaponsName, 0, 1);
-	WeaponEdit = addButton(tr("Edit"), WeaponsLayout, 0, 2);
-
 	NNGroupBox = new QGroupBox(this);
 	NNGroupBox->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
 	NNGroupBox->setTitle(QGroupBox::tr("Net options"));