mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-08 06:47:31 +02:00
tabs -> spaces, remove raw ptr, remove unnecessary spec diff
This commit is contained in:
parent
39e1a3fb44
commit
094857949d
7 changed files with 30 additions and 36 deletions
|
@ -15,12 +15,12 @@
|
|||
#include "Application.h"
|
||||
|
||||
TestingDialog::TestingDialog(QWidget* parent) :
|
||||
QDialog(parent, Qt::Window | Qt::WindowCloseButtonHint | Qt::WindowStaysOnTopHint)
|
||||
QDialog(parent, Qt::Window | Qt::WindowCloseButtonHint | Qt::WindowStaysOnTopHint),
|
||||
_console(new JSConsole(this))
|
||||
{
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
setWindowTitle(windowLabel);
|
||||
|
||||
_console = new JSConsole(this);
|
||||
_console->setFixedHeight(TESTING_CONSOLE_HEIGHT);
|
||||
|
||||
auto _engines = DependencyManager::get<ScriptEngines>();
|
||||
|
@ -29,11 +29,7 @@ TestingDialog::TestingDialog(QWidget* parent) :
|
|||
connect(_engine, &ScriptEngine::finished, this, &TestingDialog::onTestingFinished);
|
||||
}
|
||||
|
||||
TestingDialog::~TestingDialog() {
|
||||
delete _console;
|
||||
}
|
||||
|
||||
void TestingDialog::onTestingFinished(const QString& scriptPath) {
|
||||
_engine = NULL;
|
||||
_console->setScriptEngine(NULL);
|
||||
_engine = nullptr;
|
||||
_console->setScriptEngine(nullptr);
|
||||
}
|
||||
|
|
|
@ -24,12 +24,11 @@ class TestingDialog : public QDialog {
|
|||
Q_OBJECT
|
||||
public:
|
||||
TestingDialog(QWidget* parent);
|
||||
~TestingDialog();
|
||||
|
||||
void onTestingFinished(const QString& scriptPath);
|
||||
|
||||
private:
|
||||
JSConsole* _console;
|
||||
std::unique_ptr<JSConsole> _console;
|
||||
ScriptEngine* _engine;
|
||||
};
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ describe("MyAvatar", function () {
|
|||
|
||||
// wait until we are finished loading
|
||||
var id = Script.setInterval(function () {
|
||||
print(MyAvatar.jointNames.length);
|
||||
if (MyAvatar.jointNames.length == 72) {
|
||||
// assume we are finished loading.
|
||||
Script.clearInterval(id);
|
||||
|
|
Loading…
Reference in a new issue