Julian GroßFix copyright headersae7d2293 years agoHistory
37 lines · 1.1 KB · C++
RawDownload
////  TestingDialog.cpp//  interface/src/ui////  Created by Ryan Jones on 12/3/2016.//  Copyright 2016 High Fidelity, Inc.//  Copyright 2023 Overte e.V.////  Distributed under the Apache License, Version 2.0.//  See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html//  SPDX-License-Identifier: Apache-2.0// #include "TestingDialog.h" #include "Application.h"#include "ScriptEngines.h"#include <ScriptManager.h> TestingDialog::TestingDialog(QWidget* parent) :    QDialog(parent, Qt::Window | Qt::WindowCloseButtonHint | Qt::WindowStaysOnTopHint),    _console(new JSConsole(this)){    setAttribute(Qt::WA_DeleteOnClose);    setWindowTitle(windowLabel);     _console->setFixedHeight(TESTING_CONSOLE_HEIGHT);     _scriptManager = DependencyManager::get<ScriptEngines>()->loadScript(qApp->applicationDirPath() + testRunnerRelativePath);    _console->setScriptManager(_scriptManager);    connect(_scriptManager.get(), &ScriptManager::finished, this, &TestingDialog::onTestingFinished);} void TestingDialog::onTestingFinished(const QString& scriptPath) {    _scriptManager.reset();    _console->setScriptManager();}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t