Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
propertyhelper.h File Reference

Go to the source code of this file.

Macros

#define JF_FWD_RW_PROP(type, propName, propSetName, obj)
 
#define JF_FWD_R_PROP(type, propName, propSetName, obj)
 

Macro Definition Documentation

◆ JF_FWD_R_PROP

#define JF_FWD_R_PROP ( type,
propName,
propSetName,
obj )
Value:
public: \
Q_PROPERTY(type propName READ propName NOTIFY propName##Changed) \
type propName() const { return obj.propName(); } \
signals: \
void propName##Changed(type newValue);

◆ JF_FWD_RW_PROP

#define JF_FWD_RW_PROP ( type,
propName,
propSetName,
obj )
Value:
public: \
Q_PROPERTY(type propName READ propName WRITE set##propSetName NOTIFY propName##Changed) \
type propName() const { return obj.propName(); } \
void set##propSetName(type newValue) { \
obj.set##propSetName( newValue ); \
emit propName##Changed(); \
} \
Q_SIGNALS: \
void propName##Changed();