33QString SettingsFactory::s_fileName;
42 SettingsFactory::s_fileName = name;
44 QSettings::setDefaultFormat(QSettings::NativeFormat);
46 QSettings::setDefaultFormat(QSettings::IniFormat);
65 return QSettings::defaultFormat();
75 if (m_settings.isNull()) {
76 if (s_fileName.isEmpty() || QSettings::defaultFormat() == QSettings::NativeFormat) {
79 m_settings.reset(
new QSettings(s_fileName, QSettings::IniFormat));
81 m_settings->setAtomicSyncRequired(
true);
83 return m_settings.data();
The QSettings class provides persistent platform-independent application settings.
SettingsFactory class declaration.