added new macro for getter access to a color

This commit is contained in:
ZappoMan 2014-10-23 09:18:11 -04:00
parent bf199c1f30
commit 5e497c2d97

View file

@ -147,6 +147,10 @@
QScriptValue P = xColorToScriptValue(engine, _##P); \
properties.setProperty(#P, P);
#define COPY_PROPERTY_TO_QSCRIPTVALUE_COLOR_GETTER(P,G) \
QScriptValue P = xColorToScriptValue(engine, G); \
properties.setProperty(#P, P);
#define COPY_PROPERTY_TO_QSCRIPTVALUE_GETTER(P, G) \
properties.setProperty(#P, G);