GameUIConfig::GameUIConfig(HWForm * FormWidgets, const QString & fileName) : QSettings(fileName, QSettings::IniFormat, FormWidgets) { Form = FormWidgets; setIniCodec("UTF-8"); connect(Form->ui.pageOptions->CBFrontendMusic, SIGNAL(toggled(bool)), Form, SLOT(Music(bool))); for(int i = 0; i < BINDS_NUMBER; i++) { m_binds.append(BindAction()); m_binds[i].action = cbinds[i].action; m_binds[i].strbind = cbinds[i].strbind; } //Form->resize(value("frontend/width", 640).toUInt(), value("frontend/height", 450).toUInt()); resizeToConfigValues(); reloadValues(); #ifdef VIDEOREC reloadVideosValues(); #endif }
Settings::Settings(const QString &fileName, QObject *parent) : QSettings(fileName, QSettings::IniFormat, parent) { setIniCodec("UTF-8"); }
CWizSettings::CWizSettings(const QString& strFileName) : QSettings(strFileName, QSettings::IniFormat) { setIniCodec("utf-8"); }