mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 05:37:17 +02:00
Make sure the stack test interface gets cleaned up
This commit is contained in:
parent
949c7f8c19
commit
9c89aa9f90
2 changed files with 3 additions and 1 deletions
|
@ -751,7 +751,7 @@ void ScriptEngine::init() {
|
||||||
registerGlobalObject("UserActivityLogger", DependencyManager::get<UserActivityLoggerScriptingInterface>().data());
|
registerGlobalObject("UserActivityLogger", DependencyManager::get<UserActivityLoggerScriptingInterface>().data());
|
||||||
|
|
||||||
#if DEV_BUILD || PR_BUILD
|
#if DEV_BUILD || PR_BUILD
|
||||||
registerGlobalObject("StackTest", new StackTestScriptingInterface());
|
registerGlobalObject("StackTest", new StackTestScriptingInterface(this));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,8 @@ class StackTestScriptingInterface : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
StackTestScriptingInterface(QObject* parent = nullptr) : QObject(parent) {}
|
||||||
|
|
||||||
Q_INVOKABLE void pass(QString message = QString());
|
Q_INVOKABLE void pass(QString message = QString());
|
||||||
Q_INVOKABLE void fail(QString message = QString());
|
Q_INVOKABLE void fail(QString message = QString());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue