mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 23:56:29 +02:00
added new macro for getter access to a color
This commit is contained in:
parent
bf199c1f30
commit
5e497c2d97
1 changed files with 4 additions and 0 deletions
|
@ -147,6 +147,10 @@
|
||||||
QScriptValue P = xColorToScriptValue(engine, _##P); \
|
QScriptValue P = xColorToScriptValue(engine, _##P); \
|
||||||
properties.setProperty(#P, 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) \
|
#define COPY_PROPERTY_TO_QSCRIPTVALUE_GETTER(P, G) \
|
||||||
properties.setProperty(#P, G);
|
properties.setProperty(#P, G);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue