mirror of
https://github.com/lubosz/overte.git
synced 2025-04-09 09:44:33 +02:00
Fixed clearTimeout behavior when called with expired timer
This commit is contained in:
parent
e9984c72f0
commit
8304a0c500
1 changed files with 4 additions and 0 deletions
|
@ -475,6 +475,8 @@ public:
|
|||
* }, 10000);
|
||||
*/
|
||||
Q_INVOKABLE void clearInterval(QTimer* timer) { stopTimer(timer); }
|
||||
// Overloaded version is needed in case the timer has expired
|
||||
Q_INVOKABLE void clearInterval(QVariantMap timer) { ; }
|
||||
|
||||
/**jsdoc
|
||||
* Stops a timeout timer set by {@link Script.setTimeout|setTimeout}.
|
||||
|
@ -490,6 +492,8 @@ public:
|
|||
* //Script.clearTimeout(timer);
|
||||
*/
|
||||
Q_INVOKABLE void clearTimeout(QTimer* timer) { stopTimer(timer); }
|
||||
// Overloaded version is needed in case the timer has expired
|
||||
Q_INVOKABLE void clearTimeout(QVariantMap timer) { ; }
|
||||
|
||||
/**jsdoc
|
||||
* Prints a message to the program log and emits {@link Script.printedMessage}.
|
||||
|
|
Loading…
Reference in a new issue