QTfrontend/gameuiconfig.cpp
branch0.9.19
changeset 8902 a94c074fd483
parent 8799 44e520374cfc
child 8924 13ac59499066
equal deleted inserted replaced
8900:b77fd3c2eec5 8902:a94c074fd483
    92     QString wWidth = value("video/windowedWidth", widthStr).toString();
    92     QString wWidth = value("video/windowedWidth", widthStr).toString();
    93     QString wHeight = value("video/windowedHeight", heightStr).toString();
    93     QString wHeight = value("video/windowedHeight", heightStr).toString();
    94     // If left blank reset the resolution to the default
    94     // If left blank reset the resolution to the default
    95     wWidth = (wWidth == "" ? widthStr : wWidth);
    95     wWidth = (wWidth == "" ? widthStr : wWidth);
    96     wHeight = (wHeight == "" ? heightStr : wHeight);
    96     wHeight = (wHeight == "" ? heightStr : wHeight);
    97     Form->ui.pageOptions->windowWidthEdit->setText(wWidth);
    97     Form->ui.pageOptions->windowWidthEdit->setValue(wWidth.toInt());
    98     Form->ui.pageOptions->windowHeightEdit->setText(wHeight);
    98     Form->ui.pageOptions->windowHeightEdit->setValue(wHeight.toInt());
    99 
    99 
   100     Form->ui.pageOptions->CBResolution->setCurrentIndex((t < 0) ? 1 : t);
   100     Form->ui.pageOptions->CBResolution->setCurrentIndex((t < 0) ? 1 : t);
   101     Form->ui.pageOptions->CBFullscreen->setChecked(value("video/fullscreen", false).toBool());
   101     Form->ui.pageOptions->CBFullscreen->setChecked(value("video/fullscreen", false).toBool());
   102     bool ffscr=value("frontend/fullscreen", false).toBool();
   102     bool ffscr=value("frontend/fullscreen", false).toBool();
   103     Form->ui.pageOptions->CBFrontendFullscreen->setChecked(ffscr);
   103     Form->ui.pageOptions->CBFrontendFullscreen->setChecked(ffscr);