QTfrontend/gameuiconfig.cpp
changeset 647 798c7dbf8bb8
parent 646 ed610c2cd0a4
child 654 1019b8fa8638
equal deleted inserted replaced
646:ed610c2cd0a4 647:798c7dbf8bb8
    36 	Form->ui.pageOptions->CBResolution->setCurrentIndex((t < 0) ? 0 : t);
    36 	Form->ui.pageOptions->CBResolution->setCurrentIndex((t < 0) ? 0 : t);
    37 	Form->ui.pageOptions->CBFullscreen->setChecked(value("video/fullscreen", false).toBool());
    37 	Form->ui.pageOptions->CBFullscreen->setChecked(value("video/fullscreen", false).toBool());
    38 
    38 
    39 	Form->ui.pageOptions->CBEnableSound->setChecked(value("audio/sound", true).toBool());
    39 	Form->ui.pageOptions->CBEnableSound->setChecked(value("audio/sound", true).toBool());
    40 
    40 
    41 	Form->ui.pageNet->editNetNick->setText(value("net/nick", QLineEdit::tr("unnamed")).toString());
    41 	Form->ui.pageOptions->editNetNick->setText(value("net/nick", QLineEdit::tr("unnamed")).toString());
    42 //	Form->ui.pageNet->editIP->setText(value("net/ip", "").toString());
    42 //	Form->ui.pageNet->editIP->setText(value("net/ip", "").toString());
    43 
    43 
    44 	Form->ui.pageOptions->CBShowFPS->setChecked(value("fps/show", false).toBool());
    44 	Form->ui.pageOptions->CBShowFPS->setChecked(value("fps/show", false).toBool());
    45 	Form->ui.pageOptions->fpsedit->setValue(value("fps/interval", 27).toUInt());
    45 	Form->ui.pageOptions->fpsedit->setValue(value("fps/interval", 27).toUInt());
    46 
    46 
    68 	setValue("video/resolution", Form->ui.pageOptions->CBResolution->currentText());
    68 	setValue("video/resolution", Form->ui.pageOptions->CBResolution->currentText());
    69 	setValue("video/fullscreen", vid_Fullscreen());
    69 	setValue("video/fullscreen", vid_Fullscreen());
    70 
    70 
    71 	setValue("audio/sound", isSoundEnabled());
    71 	setValue("audio/sound", isSoundEnabled());
    72 
    72 
    73 	setValue("net/nick", Form->ui.pageNet->editNetNick->text());
    73 	setValue("net/nick", Form->ui.pageOptions->editNetNick->text());
    74 //	setValue("net/ip", Form->ui.pageNet->editIP->text());
    74 //	setValue("net/ip", Form->ui.pageNet->editIP->text());
    75 
    75 
    76 	setValue("fps/show", isShowFPSEnabled());
    76 	setValue("fps/show", isShowFPSEnabled());
    77 	setValue("fps/interval", Form->ui.pageOptions->fpsedit->value());
    77 	setValue("fps/interval", Form->ui.pageOptions->fpsedit->value());
    78 
    78