#ifndef UTIL_H_ #define UTIL_H_ // Helper for getting a settings object in various places, so if you ever change the organization, location, // file format or anything, you won't have to edit in 100 places. // Use like this: // USER_SETTINGS(settings) // settings.value("somekey") #define USER_SETTINGS(name) QSettings name (QSettings::IniFormat, QSettings::UserScope, "openslx/pvs2", "pvs2") #define SYSTEM_SETTINGS(name) QSettings name (QSettings::IniFormat, QSettings::SystemScope, "openslx/pvs2", "pvs2") namespace Util { } #endif /* UTIL_H_ */