equal
deleted
inserted
replaced
46 #include "sdlkeys.h" |
46 #include "sdlkeys.h" |
47 #include "hwconsts.h" |
47 #include "hwconsts.h" |
48 #include "gamecfgwidget.h" |
48 #include "gamecfgwidget.h" |
49 #include "teamselect.h" |
49 #include "teamselect.h" |
50 #include "gamecfgwidget.h" |
50 #include "gamecfgwidget.h" |
|
51 #include "SquareLabel.h" |
51 |
52 |
52 PageMain::PageMain(QWidget* parent) : QWidget(parent) |
53 PageMain::PageMain(QWidget* parent) : QWidget(parent) |
53 { |
54 { |
54 QFont * font14 = new QFont("MS Shell Dlg", 14); |
55 QFont * font14 = new QFont("MS Shell Dlg", 14); |
55 QGridLayout * pageLayout = new QGridLayout(this); |
56 QGridLayout * pageLayout = new QGridLayout(this); |
205 GBoxFort->setTitle(QGroupBox::tr("Fort")); |
206 GBoxFort->setTitle(QGroupBox::tr("Fort")); |
206 QGridLayout * GBFLayout = new QGridLayout(GBoxFort); |
207 QGridLayout * GBFLayout = new QGridLayout(GBoxFort); |
207 CBFort = new QComboBox(GBoxFort); |
208 CBFort = new QComboBox(GBoxFort); |
208 CBFort->setMaxCount(65535); |
209 CBFort->setMaxCount(65535); |
209 GBFLayout->addWidget(CBFort, 0, 0); |
210 GBFLayout->addWidget(CBFort, 0, 0); |
210 FortPreview = new QLabel(GBoxFort); |
211 FortPreview = new SquareLabel(GBoxFort); |
211 FortPreview->setPixmap(QPixmap()); |
212 FortPreview->setPixmap(QPixmap()); |
212 FortPreview->setScaledContents(true); |
213 FortPreview->setScaledContents(true); |
213 GBFLayout->addWidget(FortPreview, 1, 0); |
214 GBFLayout->addWidget(FortPreview, 1, 0); |
214 pageLayout->addWidget(GBoxFort, 2, 2, 1, 1); |
215 pageLayout->addWidget(GBoxFort, 2, 2, 1, 1); |
215 |
216 |