#include "util.h"
#include <QtCore/QSettings>
#include <QtCore/QUrl>
#include <QtCore/QStringBuilder>
Go to the source code of this file.
◆ QUO_DECLARE_SETTING
#define QUO_DECLARE_SETTING |
( |
|
type, |
|
|
|
propname, |
|
|
|
setter |
|
) |
| |
Value: Q_PROPERTY(type propname READ propname WRITE setter) \
public: \
type propname() const; \
void setter(type newValue); \
\
private:
Definition at line 109 of file settings.h.
◆ QUO_DEFINE_SETTING
#define QUO_DEFINE_SETTING |
( |
|
classname, |
|
|
|
type, |
|
|
|
propname, |
|
|
|
qsettingname, |
|
|
|
defaultValue, |
|
|
|
setter |
|
) |
| |
Value: type classname::propname() const { return get<type>(qsettingname##_L1, defaultValue); } \
void classname::setter(type newValue) { setValue(qsettingname##_L1, std::move(newValue)); }
Definition at line 117 of file settings.h.