QTfrontend/pages.cpp
changeset 231 c77b16e48273
parent 187 96c3154efee5
child 236 7ca605677704
equal deleted inserted replaced
230:ff76ba0671f7 231:c77b16e48273
    24 #include <QLabel>
    24 #include <QLabel>
    25 #include <QToolBox>
    25 #include <QToolBox>
    26 #include <QLineEdit>
    26 #include <QLineEdit>
    27 #include <QListWidget>
    27 #include <QListWidget>
    28 #include <QApplication>
    28 #include <QApplication>
       
    29 #include <QSpinBox>
    29 
    30 
    30 #include "pages.h"
    31 #include "pages.h"
    31 #include "sdlkeys.h"
    32 #include "sdlkeys.h"
    32 #include "hwconsts.h"
    33 #include "hwconsts.h"
    33 #include "gamecfgwidget.h"
    34 #include "gamecfgwidget.h"
   120 	GBoxTeam->setTitle(QGroupBox::tr("Team"));
   121 	GBoxTeam->setTitle(QGroupBox::tr("Team"));
   121 	GBoxTeam->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
   122 	GBoxTeam->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
   122 	QGridLayout * GBTLayout = new QGridLayout(GBoxTeam);
   123 	QGridLayout * GBTLayout = new QGridLayout(GBoxTeam);
   123 	TeamNameEdit = new QLineEdit(GBoxTeam);
   124 	TeamNameEdit = new QLineEdit(GBoxTeam);
   124 	TeamNameEdit->setMaxLength(15);
   125 	TeamNameEdit->setMaxLength(15);
   125 	GBTLayout->addWidget(TeamNameEdit);
   126 	GBTLayout->addWidget(TeamNameEdit, 0, 0, 1, 0);
       
   127 
       
   128 	QLabel* difficultyLabel=new QLabel(GBoxTeam);
       
   129 	difficultyLabel->setText("difficulty:");
       
   130 	difficultyBox=new QSpinBox(GBoxTeam);
       
   131 	difficultyBox->setRange(0, 5);
       
   132 	difficultyBox->setSingleStep(1);
       
   133 	difficultyBox->setValue(0);
       
   134 	GBTLayout->addWidget(difficultyLabel, 1, 0);
       
   135 	GBTLayout->addWidget(difficultyBox, 1, 1);
       
   136 	
   126 	pageLayout->addWidget(GBoxTeam, 0, 0);
   137 	pageLayout->addWidget(GBoxTeam, 0, 0);
   127 
   138 
   128 	GBoxHedgehogs = new	QGroupBox(this);
   139 	GBoxHedgehogs = new	QGroupBox(this);
   129 	GBoxHedgehogs->setTitle(QGroupBox::tr("Team Members"));
   140 	GBoxHedgehogs->setTitle(QGroupBox::tr("Team Members"));
   130 	GBoxHedgehogs->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
   141 	GBoxHedgehogs->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);