QTfrontend/gameuiconfig.cpp
changeset 9055 45ebf126a5c2
parent 9054 707e40076be6
child 9080 9b42757d7e71
equal deleted inserted replaced
9054:707e40076be6 9055:45ebf126a5c2
   110     Form->ui.pageOptions->CBFrontendSound->setChecked(value("frontend/sound", true).toBool());
   110     Form->ui.pageOptions->CBFrontendSound->setChecked(value("frontend/sound", true).toBool());
   111     Form->ui.pageOptions->CBMusic->setChecked(value("audio/music", true).toBool());
   111     Form->ui.pageOptions->CBMusic->setChecked(value("audio/music", true).toBool());
   112     Form->ui.pageOptions->CBFrontendMusic->setChecked(value("frontend/music", true).toBool());
   112     Form->ui.pageOptions->CBFrontendMusic->setChecked(value("frontend/music", true).toBool());
   113     Form->ui.pageOptions->SLVolume->setValue(value("audio/volume", 100).toUInt());
   113     Form->ui.pageOptions->SLVolume->setValue(value("audio/volume", 100).toUInt());
   114 
   114 
   115     QString netNick = value("net/nick", "").toString();
   115     QString netNick = value("net/nick", tr("Guest")+QString("%1").arg(rand())).toString();
   116     Form->ui.pageOptions->editNetNick->setText(netNick);
   116     Form->ui.pageOptions->editNetNick->setText(netNick);
   117     bool savePwd = value("net/savepassword",true).toBool();
   117     bool savePwd = value("net/savepassword",true).toBool();
   118     Form->ui.pageOptions->CBSavePassword->setChecked(savePwd);
   118     Form->ui.pageOptions->CBSavePassword->setChecked(savePwd);
   119 
   119 
   120     Form->ui.pageOptions->editNetPassword->installEventFilter(this);
   120     Form->ui.pageOptions->editNetPassword->installEventFilter(this);