QTfrontend/gameuiconfig.cpp
changeset 14068 b8df809c62bf
parent 13633 d5e029b84e16
child 14675 56831f466d1d
equal deleted inserted replaced
14067:2b461e323de8 14068:b8df809c62bf
   238 }
   238 }
   239 
   239 
   240 void GameUIConfig::SaveOptions()
   240 void GameUIConfig::SaveOptions()
   241 {
   241 {
   242     setValue("video/fullscreenResolution", Form->ui.pageOptions->CBResolution->currentText());
   242     setValue("video/fullscreenResolution", Form->ui.pageOptions->CBResolution->currentText());
   243     setValue("video/windowedWidth", Form->ui.pageOptions->windowWidthEdit->text());
   243     setValue("video/windowedWidth", Form->ui.pageOptions->windowWidthEdit->value());
   244     setValue("video/windowedHeight", Form->ui.pageOptions->windowHeightEdit->text());
   244     setValue("video/windowedHeight", Form->ui.pageOptions->windowHeightEdit->value());
   245     setValue("video/fullscreen", vid_Fullscreen());
   245     setValue("video/fullscreen", vid_Fullscreen());
   246 
   246 
   247     setValue("video/quality", Form->ui.pageOptions->SLQuality->value());
   247     setValue("video/quality", Form->ui.pageOptions->SLQuality->value());
   248     setValue("video/stereo", stereoMode());
   248     setValue("video/stereo", stereoMode());
   249 
   249 
   361     if (wh.size() == 2)
   361     if (wh.size() == 2)
   362     {
   362     {
   363         full.setWidth(wh[0].toInt());
   363         full.setWidth(wh[0].toInt());
   364         full.setHeight(wh[1].toInt());
   364         full.setHeight(wh[1].toInt());
   365     }
   365     }
   366     windowed.setWidth(Form->ui.pageOptions->windowWidthEdit->text().toInt());
   366     windowed.setWidth(Form->ui.pageOptions->windowWidthEdit->value());
   367     windowed.setHeight(Form->ui.pageOptions->windowHeightEdit->text().toInt());
   367     windowed.setHeight(Form->ui.pageOptions->windowHeightEdit->value());
   368     return std::make_pair(full, windowed);
   368     return std::make_pair(full, windowed);
   369 }
   369 }
   370 
   370 
   371 QRect GameUIConfig::vid_Resolution()
   371 QRect GameUIConfig::vid_Resolution()
   372 {
   372 {