Add setTimeout to script api, and properly refresh scene when overlay is changed

This commit is contained in:
Marcus Huderle
2020-05-08 09:46:26 -05:00
parent 71242e5714
commit 3c1549cc93
4 changed files with 60 additions and 13 deletions

View File

@@ -96,6 +96,8 @@ public:
Q_INVOKABLE void setSmartPathsEnabled(bool visible);
Q_INVOKABLE bool getSmartPathsEnabled();
Q_INVOKABLE void registerAction(QString functionName, QString actionName, QString shortcut = "");
Q_INVOKABLE void setTimeout(QJSValue callback, int milliseconds);
void invokeCallback(QJSValue callback);
public slots: