qt/LedOK/LoQClass/loqmacro.h
2022-01-04 18:11:48 +08:00

15 lines
409 B
C

#ifndef LOQMACRO_H
#define LOQMACRO_H
/*
#define LoQ_PROPERTY(type, name) \
public slots: type get##name() const { return m_##name; } \
public slots: void set##name(const type &a) { m_##name = a; } \
signals: void name##Changed(const type &); \
private: \
Q_PROPERTY(type name MEMBER m_##name READ get##name WRITE set##name NOTIFY name##Changed) \
type m_##name;
*/
#endif // LOQMACRO_H