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