// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#include "qmlprofilerrunconfigurationaspect.h"

#include "profilertr.h"
#include "qmlprofilerconstants.h"
#include "qmlprofilersettings.h"

#include <projectexplorer/runconfiguration.h>

using namespace ProjectExplorer;

namespace Profiler::Internal {

QmlProfilerRunConfigurationAspect::QmlProfilerRunConfigurationAspect(BuildConfiguration *)
{
    setProjectSettings(new QmlProfilerSettings);
    setGlobalSettings(&Internal::globalSettings(), Constants::SETTINGS);
    setId(Constants::SETTINGS);
    setDisplayName(Tr::tr("QML Profiler Settings"));
    setUsingGlobalSettings(true);
    resetProjectToGlobalSettings();
    setConfigWidgetCreator([this] { return createRunConfigAspectWidget(this); });
}

} // namespace Profiler::Internal
