28 #include <QSpinBox> |
28 #include <QSpinBox> |
29 |
29 |
30 #include "ammoSchemeModel.h" |
30 #include "ammoSchemeModel.h" |
31 #include "pagescheme.h" |
31 #include "pagescheme.h" |
32 #include "FreqSpinBox.h" |
32 #include "FreqSpinBox.h" |
|
33 #include "MinesTimeSpinBox.h" |
33 |
34 |
34 |
35 |
35 QLayout * PageScheme::bodyLayoutDefinition() |
36 QLayout * PageScheme::bodyLayoutDefinition() |
36 { |
37 { |
37 QGridLayout * pageLayout = new QGridLayout(); |
38 QGridLayout * pageLayout = new QGridLayout(); |
366 l = new QLabel(gbBasicSettings); |
367 l = new QLabel(gbBasicSettings); |
367 l->setWhatsThis(wtMinesTime); |
368 l->setWhatsThis(wtMinesTime); |
368 l->setFixedSize(32,32); |
369 l->setFixedSize(32,32); |
369 l->setPixmap(QPixmap(":/res/iconMineTime.png")); |
370 l->setPixmap(QPixmap(":/res/iconMineTime.png")); |
370 glBSLayout->addWidget(l,10,1,1,1); |
371 glBSLayout->addWidget(l,10,1,1,1); |
371 SB_MinesTime = new QSpinBox(gbBasicSettings); |
372 SB_MinesTime = new MinesTimeSpinBox(gbBasicSettings); |
372 SB_MinesTime->setWhatsThis(wtMinesTime); |
373 SB_MinesTime->setWhatsThis(wtMinesTime); |
373 SB_MinesTime->setRange(-1, 5); |
374 SB_MinesTime->setRange(-1, 5); |
374 SB_MinesTime->setValue(3); |
375 SB_MinesTime->setValue(3); |
375 SB_MinesTime->setSingleStep(1); |
376 SB_MinesTime->setSingleStep(1); |
376 SB_MinesTime->setSpecialValueText(tr("Random")); |
|
377 SB_MinesTime->setSuffix(" "+ tr("Seconds")); |
|
378 glBSLayout->addWidget(SB_MinesTime,10,2,1,1); |
377 glBSLayout->addWidget(SB_MinesTime,10,2,1,1); |
379 |
378 |
380 l = new QLabel(gbBasicSettings); |
379 l = new QLabel(gbBasicSettings); |
381 l->setText(QLabel::tr("Mines")); |
380 l->setText(QLabel::tr("Mines")); |
382 l->setWhatsThis(wtMines); |
381 l->setWhatsThis(wtMines); |