equal
deleted
inserted
replaced
35 #include "teamselect.h" |
35 #include "teamselect.h" |
36 #include "gamecfgwidget.h" |
36 #include "gamecfgwidget.h" |
37 #include "SquareLabel.h" |
37 #include "SquareLabel.h" |
38 #include "mapContainer.h" |
38 #include "mapContainer.h" |
39 #include "about.h" |
39 #include "about.h" |
|
40 #include "fpsedit.h" |
40 |
41 |
41 PageMain::PageMain(QWidget* parent) : QWidget(parent) |
42 PageMain::PageMain(QWidget* parent) : QWidget(parent) |
42 { |
43 { |
43 QFont * font14 = new QFont("MS Shell Dlg", 14); |
44 QFont * font14 = new QFont("MS Shell Dlg", 14); |
44 QGridLayout * pageLayout = new QGridLayout(this); |
45 QGridLayout * pageLayout = new QGridLayout(this); |
343 |
344 |
344 CBEnableSound = new QCheckBox(AGGroupBox); |
345 CBEnableSound = new QCheckBox(AGGroupBox); |
345 CBEnableSound->setText(QCheckBox::tr("Enable sound")); |
346 CBEnableSound->setText(QCheckBox::tr("Enable sound")); |
346 GBAlayout->addWidget(CBEnableSound, 0, 2); |
347 GBAlayout->addWidget(CBEnableSound, 0, 2); |
347 |
348 |
|
349 CBShowFPS = new QCheckBox(AGGroupBox); |
|
350 CBShowFPS->setText(QCheckBox::tr("Show FPS")); |
|
351 GBAlayout->addWidget(CBShowFPS, 0, 3); |
|
352 |
|
353 fpsedit = new FPSEdit(AGGroupBox); |
|
354 GBAlayout->addWidget(fpsedit, 0, 4); |
|
355 |
348 pageLayout->addWidget(new QWidget(), 3, 0, 1, 3); |
356 pageLayout->addWidget(new QWidget(), 3, 0, 1, 3); |
349 |
357 |
350 BtnSaveOptions = new QPushButton(this); |
358 BtnSaveOptions = new QPushButton(this); |
351 BtnSaveOptions->setFont(*font14); |
359 BtnSaveOptions->setFont(*font14); |
352 BtnSaveOptions->setText(QPushButton::tr("Save")); |
360 BtnSaveOptions->setText(QPushButton::tr("Save")); |