2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2015-08-28 12:50:46 +02:00
|
|
|
|
|
|
|
|
#include "qmlprofilerrunconfigurationaspect.h"
|
|
|
|
|
#include "qmlprofilersettings.h"
|
|
|
|
|
#include "qmlprofilerplugin.h"
|
|
|
|
|
#include "qmlprofilerconstants.h"
|
|
|
|
|
|
2016-02-24 14:42:52 +01:00
|
|
|
#include <debugger/analyzer/analyzerrunconfigwidget.h>
|
2015-08-28 12:50:46 +02:00
|
|
|
|
|
|
|
|
namespace QmlProfiler {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
2018-09-12 11:48:32 +02:00
|
|
|
QmlProfilerRunConfigurationAspect::QmlProfilerRunConfigurationAspect(ProjectExplorer::Target *)
|
2015-08-28 12:50:46 +02:00
|
|
|
{
|
2018-09-10 15:39:27 +02:00
|
|
|
setProjectSettings(new QmlProfilerSettings);
|
2015-08-28 12:50:46 +02:00
|
|
|
setGlobalSettings(QmlProfilerPlugin::globalSettings());
|
|
|
|
|
setId(Constants::SETTINGS);
|
2015-10-28 12:59:34 +03:00
|
|
|
setDisplayName(QCoreApplication::translate("QmlProfilerRunConfiguration", "QML Profiler Settings"));
|
2015-08-28 12:50:46 +02:00
|
|
|
setUsingGlobalSettings(true);
|
|
|
|
|
resetProjectToGlobalSettings();
|
2018-09-12 13:40:37 +02:00
|
|
|
setConfigWidgetCreator([this] { return new Debugger::AnalyzerRunConfigWidget(this); });
|
2015-08-28 12:50:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // Internal
|
|
|
|
|
} // QmlProfiler
|