#include <QtCore/qsettings.h> #ifndef QSETTINGS_H #ifndef QT_NO_SETTINGS class QSettings: public QObject{ /* Some contents are skipped to improve readability */ public: enum Scope{ UserScope = 0, SystemScope = 1, }; /* ... */ }; #endif // QT_NO_SETTINGS #endif // QSETTINGS_H