-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeneralsettings.h
37 lines (25 loc) · 939 Bytes
/
generalsettings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef GENERALSETTINGS_H
#define GENERALSETTINGS_H
#include <QVariantMap>
class QSettings;
namespace ColorPicker {
namespace Internal {
class GeneralSettings
{
public:
GeneralSettings();
void toSettings(const QString &category, QSettings *s) const;
void fromSettings(const QString &category, const QSettings *s);
void toMap(const QString &prefix, QVariantMap *map) const;
void fromMap(const QString &prefix, const QVariantMap &map);
bool equals(const GeneralSettings &gs) const;
/* variables */
bool m_editorSensitive;
bool m_insertOnChange;
};
inline bool operator==(const GeneralSettings &t1, const GeneralSettings &t2) { return t1.equals(t2); }
inline bool operator!=(const GeneralSettings &t1, const GeneralSettings &t2) { return !t1.equals(t2); }
} // namespace Internal
} // namespace ColorPicker
Q_DECLARE_METATYPE(ColorPicker::Internal::GeneralSettings)
#endif // GENERALSETTINGS_H