QTfrontend/pages.cpp
changeset 1157 c2e02c52dcad
parent 1153 825931b81ad4
child 1162 91bf5e3e558d
equal deleted inserted replaced
1156:3b51492e77f9 1157:c2e02c52dcad
   282 	GBTlayout->addWidget(CBTeamName, 0, 1);
   282 	GBTlayout->addWidget(CBTeamName, 0, 1);
   283 
   283 
   284 	BtnEditTeam = addButton(tr("Edit team"), GBTlayout, 0, 2);
   284 	BtnEditTeam = addButton(tr("Edit team"), GBTlayout, 0, 2);
   285 
   285 
   286 	AGGroupBox = new QGroupBox(this);
   286 	AGGroupBox = new QGroupBox(this);
       
   287 	AGGroupBox->setCheckable(true);
   287 	AGGroupBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
   288 	AGGroupBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
   288 	AGGroupBox->setTitle(QGroupBox::tr("Audio/Graphic options"));
   289 	AGGroupBox->setTitle(QGroupBox::tr("Audio/Graphic options"));
   289 	pageLayout->addWidget(AGGroupBox, 2, 1);
   290 	pageLayout->addWidget(AGGroupBox, 2, 1);
   290 
   291 
   291 	QVBoxLayout * GBAlayout = new QVBoxLayout(AGGroupBox);
   292 	QVBoxLayout * GBAlayout = new QVBoxLayout(AGGroupBox);
   308 
   309 
   309 	CBFullscreen = new QCheckBox(AGGroupBox);
   310 	CBFullscreen = new QCheckBox(AGGroupBox);
   310 	CBFullscreen->setText(QCheckBox::tr("Fullscreen"));
   311 	CBFullscreen->setText(QCheckBox::tr("Fullscreen"));
   311 	GBAlayout->addWidget(CBFullscreen);
   312 	GBAlayout->addWidget(CBFullscreen);
   312 
   313 
   313 	CBEnableSound = new	QCheckBox(AGGroupBox);
   314 	CBEnableSound = new QCheckBox(AGGroupBox);
   314 	CBEnableSound->setText(QCheckBox::tr("Enable sound"));
   315 	CBEnableSound->setText(QCheckBox::tr("Enable sound"));
   315 	GBAlayout->addWidget(CBEnableSound);
   316 	GBAlayout->addWidget(CBEnableSound);
   316 
   317 
   317 	CBEnableMusic = new	QCheckBox(AGGroupBox);
   318 	CBEnableMusic = new QCheckBox(AGGroupBox);
   318 	CBEnableMusic->setText(QCheckBox::tr("Enable music"));
   319 	CBEnableMusic->setText(QCheckBox::tr("Enable music"));
   319 	GBAlayout->addWidget(CBEnableMusic);
   320 	GBAlayout->addWidget(CBEnableMusic);
   320 
   321 
   321 	CBShowFPS = new QCheckBox(AGGroupBox);
   322 	CBShowFPS = new QCheckBox(AGGroupBox);
   322 	CBShowFPS->setText(QCheckBox::tr("Show FPS"));
   323 	CBShowFPS->setText(QCheckBox::tr("Show FPS"));
   327 	GBAlayout->addWidget(CBAltDamage);
   328 	GBAlayout->addWidget(CBAltDamage);
   328 
   329 
   329 	fpsedit = new FPSEdit(AGGroupBox);
   330 	fpsedit = new FPSEdit(AGGroupBox);
   330 	GBAfpslayout->addWidget(fpsedit);
   331 	GBAfpslayout->addWidget(fpsedit);
   331 
   332 
   332 	BtnSaveOptions = addButton(tr("Save"), pageLayout, 4, 2);
   333 	BtnSaveOptions = addButton(":/res/Save.png", pageLayout, 4, 2, true);
   333 
   334 
   334 	BtnBack = addButton(":/res/Exit.png", pageLayout, 4, 0, true);
   335 	BtnBack = addButton(":/res/Exit.png", pageLayout, 4, 0, true);
   335 
   336 
   336 	QGroupBox* groupWeapons = new QGroupBox(this);
   337 	QGroupBox* groupWeapons = new QGroupBox(this);
   337 	groupWeapons->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
   338 	groupWeapons->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);