Fix global print function's JSDoc

This commit is contained in:
David Rowe 2019-12-11 07:42:58 +13:00
parent 5caa21e5d9
commit bbd16d7544
2 changed files with 7 additions and 6 deletions

View file

@ -731,6 +731,13 @@ void ScriptEngine::init() {
QScriptValue webSocketConstructorValue = newFunction(WebSocketClass::constructor);
globalObject().setProperty("WebSocket", webSocketConstructorValue);
/**jsdoc
* Prints a message to the program log and emits {@link Script.printedMessage}.
* The message logged is the message values separated by spaces.
* <p>Alternatively, you can use {@link Script.print} or one of the {@link console} API methods.</p>
* @function print
* @param {...*} [message] - The message values to print.
*/
globalObject().setProperty("print", newFunction(debugPrint));
QScriptValue audioEffectOptionsConstructorValue = newFunction(AudioEffectOptions::constructor);

View file

@ -504,12 +504,6 @@ public:
* @function Script.print
* @param {string} message - The message to print.
*/
/**jsdoc
* Prints a message to the program log.
* <p>This is an alias of {@link Script.print}.</p>
* @function print
* @param {string} message - The message to print.
*/
Q_INVOKABLE void print(const QString& message);
/**jsdoc