Showing the changes to libraries/script-engine/src/ScriptEngine.h (1 of 1 file). Show all
Unified · Split
| @@ -240,7 +240,7 @@ public: · 239 unmodified lines | |||
| 240 | * @param {object} enum - Enum. | 240 | * @param {object} enum - Enum. |
| 241 | * @deprecated This function is deprecated and will be removed. | 241 | * @deprecated This function is deprecated and will be removed. |
| 242 | */ | 242 | */ |
| 243 | // WARNING: This function must be called after a registerGlobalObject that creates the namespace this enum is located in, or\ | 243 | // WARNING: This function must be called after a registerGlobalObject that creates the namespace this enum is located in, or |
| 244 | // the globalObject won't function. E.g., if you have a Foo object and a Foo.FooType enum, Foo must be registered first. | 244 | // the globalObject won't function. E.g., if you have a Foo object and a Foo.FooType enum, Foo must be registered first. |
| 245 | /// registers a global enum | 245 | /// registers a global enum |
| 246 | Q_INVOKABLE void registerEnum(const QString& enumName, QMetaEnum newEnum); | 246 | Q_INVOKABLE void registerEnum(const QString& enumName, QMetaEnum newEnum); |