QTfrontend/pages.cpp
changeset 231 c77b16e48273
parent 187 96c3154efee5
child 236 7ca605677704
--- a/QTfrontend/pages.cpp	Fri Nov 10 20:41:12 2006 +0000
+++ b/QTfrontend/pages.cpp	Sun Nov 12 20:15:58 2006 +0000
@@ -26,6 +26,7 @@
 #include <QLineEdit>
 #include <QListWidget>
 #include <QApplication>
+#include <QSpinBox>
 
 #include "pages.h"
 #include "sdlkeys.h"
@@ -122,7 +123,17 @@
 	QGridLayout * GBTLayout = new QGridLayout(GBoxTeam);
 	TeamNameEdit = new QLineEdit(GBoxTeam);
 	TeamNameEdit->setMaxLength(15);
-	GBTLayout->addWidget(TeamNameEdit);
+	GBTLayout->addWidget(TeamNameEdit, 0, 0, 1, 0);
+
+	QLabel* difficultyLabel=new QLabel(GBoxTeam);
+	difficultyLabel->setText("difficulty:");
+	difficultyBox=new QSpinBox(GBoxTeam);
+	difficultyBox->setRange(0, 5);
+	difficultyBox->setSingleStep(1);
+	difficultyBox->setValue(0);
+	GBTLayout->addWidget(difficultyLabel, 1, 0);
+	GBTLayout->addWidget(difficultyBox, 1, 1);
+	
 	pageLayout->addWidget(GBoxTeam, 0, 0);
 
 	GBoxHedgehogs = new	QGroupBox(this);