use macro for copying shapeType string to script

This commit is contained in:
Andrew Meadows 2015-02-23 10:13:47 -08:00
parent 27e6f99deb
commit 0fc4c732f7

View file

@ -300,7 +300,7 @@ QScriptValue EntityItemProperties::copyToScriptValue(QScriptEngine* engine) cons
COPY_PROPERTY_TO_QSCRIPTVALUE(lineHeight);
COPY_PROPERTY_TO_QSCRIPTVALUE_COLOR_GETTER(textColor, getTextColor());
COPY_PROPERTY_TO_QSCRIPTVALUE_COLOR_GETTER(backgroundColor, getBackgroundColor());
properties.setProperty("shapeType", getShapeTypeString());
COPY_PROPERTY_TO_QSCRIPTVALUE_GETTER(shapeType, getShapeTypeString());
// Sitting properties support
QScriptValue sittingPoints = engine->newObject();