248 CBFullscreen = new QCheckBox(groupGame); |
248 CBFullscreen = new QCheckBox(groupGame); |
249 groupGame->layout()->addWidget(CBFullscreen, 0, 0, 1, 2); |
249 groupGame->layout()->addWidget(CBFullscreen, 0, 0, 1, 2); |
250 CBFullscreen->setText(QLabel::tr("Fullscreen")); |
250 CBFullscreen->setText(QLabel::tr("Fullscreen")); |
251 |
251 |
252 // Fullscreen resolution |
252 // Fullscreen resolution |
253 |
253 |
254 lblFullScreenRes = new QLabel(groupGame); |
254 lblFullScreenRes = new QLabel(groupGame); |
255 lblFullScreenRes->setText(QLabel::tr("Fullscreen Resolution")); |
255 lblFullScreenRes->setText(QLabel::tr("Fullscreen Resolution")); |
256 groupGame->layout()->addWidget(lblFullScreenRes, 1, 0); |
256 groupGame->layout()->addWidget(lblFullScreenRes, 1, 0); |
257 |
257 |
258 CBResolution = new QComboBox(groupGame); |
258 CBResolution = new QComboBox(groupGame); |
259 CBResolution->setFixedWidth(200); |
259 CBResolution->setFixedWidth(200); |
260 groupGame->layout()->addWidget(CBResolution, 1, 1, Qt::AlignLeft); |
260 groupGame->layout()->addWidget(CBResolution, 1, 1, Qt::AlignLeft); |
261 |
261 |
262 // Windowed resolution |
262 // Windowed resolution |
263 |
263 |
264 lblWinScreenRes = new QLabel(groupGame); |
264 lblWinScreenRes = new QLabel(groupGame); |
265 lblWinScreenRes->setText(QLabel::tr("Windowed Resolution")); |
265 lblWinScreenRes->setText(QLabel::tr("Windowed Resolution")); |
266 groupGame->layout()->addWidget(lblWinScreenRes, 2, 0); |
266 groupGame->layout()->addWidget(lblWinScreenRes, 2, 0); |
267 |
267 |
268 winResContainer = new QWidget(); |
268 winResContainer = new QWidget(); |
269 QHBoxLayout * winResLayout = new QHBoxLayout(winResContainer); |
269 QHBoxLayout * winResLayout = new QHBoxLayout(winResContainer); |
270 winResLayout->setSpacing(0); |
270 winResLayout->setSpacing(0); |
271 groupGame->layout()->addWidget(winResContainer, 2, 1); |
271 groupGame->layout()->addWidget(winResContainer, 2, 1); |
272 |
272 |
273 QLabel *winLabelX = new QLabel(groupGame); |
273 QLabel *winLabelX = new QLabel(groupGame); |
274 winLabelX->setText("x"); // decorational x |
274 winLabelX->setText("x"); // decorational x |
275 winLabelX->setFixedWidth(40); |
275 winLabelX->setFixedWidth(40); |
276 winLabelX->setAlignment(Qt::AlignCenter); |
276 winLabelX->setAlignment(Qt::AlignCenter); |
277 |
277 |
278 windowWidthEdit = new QLineEdit(groupGame); |
278 windowWidthEdit = new QLineEdit(groupGame); |
279 windowWidthEdit->setValidator(new QIntValidator(this)); |
279 windowWidthEdit->setValidator(new QIntValidator(this)); |
280 windowWidthEdit->setFixedSize(55, CBResolution->height()); |
280 windowWidthEdit->setFixedSize(55, CBResolution->height()); |
281 windowHeightEdit = new QLineEdit(groupGame); |
281 windowHeightEdit = new QLineEdit(groupGame); |
282 windowHeightEdit->setValidator(new QIntValidator(this)); |
282 windowHeightEdit->setValidator(new QIntValidator(this)); |
283 windowHeightEdit->setFixedSize(55, CBResolution->height()); |
283 windowHeightEdit->setFixedSize(55, CBResolution->height()); |
284 |
284 |
285 winResLayout->addWidget(windowWidthEdit, 0); |
285 winResLayout->addWidget(windowWidthEdit, 0); |
286 winResLayout->addWidget(winLabelX, 0); |
286 winResLayout->addWidget(winLabelX, 0); |
287 winResLayout->addWidget(windowHeightEdit, 0); |
287 winResLayout->addWidget(windowHeightEdit, 0); |
288 winResLayout->addStretch(1); |
288 winResLayout->addStretch(1); |
289 |
289 |