Showing the changes to libraries/shared/src/SettingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -39,12 +39,12 @@ namespace Setting { · 38 unmodified lines | ||
| 39 | 39 | void init() { |
| 40 | 40 | // read the ApplicationInfo.ini file for Name/Version/Domain information |
| 41 | 41 | QSettings::setDefaultFormat(QSettings::IniFormat); |
| 42 | − // QSettings applicationInfo(PathUtils::resourcesPath() + "info/ApplicationInfo.ini", QSettings::IniFormat); | |
| 43 | − // // set the associated application properties | |
| 44 | − // applicationInfo.beginGroup("INFO"); | |
| 45 | − // QCoreApplication::setApplicationName(applicationInfo.value("name").toString()); | |
| 46 | − // QCoreApplication::setOrganizationName(applicationInfo.value("organizationName").toString()); | |
| 47 | − // QCoreApplication::setOrganizationDomain(applicationInfo.value("organizationDomain").toString()); | |
| 42 | + QSettings applicationInfo(PathUtils::resourcesPath() + "info/ApplicationInfo.ini", QSettings::IniFormat); | |
| 43 | + // set the associated application properties | |
| 44 | + applicationInfo.beginGroup("INFO"); | |
| 45 | + QCoreApplication::setApplicationName(applicationInfo.value("name").toString()); | |
| 46 | + QCoreApplication::setOrganizationName(applicationInfo.value("organizationName").toString()); | |
| 47 | + QCoreApplication::setOrganizationDomain(applicationInfo.value("organizationDomain").toString()); | |
| 48 | 48 | |
| 49 | 49 | // Let's set up the settings Private instance on it's own thread |
| 50 | 50 | QThread* thread = new QThread(); |