1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include "qquickprofileradapterfactory.h"
5#include "qquickprofileradapter.h"
6#include <private/qqmldebugconnector_p.h>
7#include <private/qqmldebugserviceinterfaces_p.h>
8
9QT_BEGIN_NAMESPACE
10
11QQmlAbstractProfilerAdapter *QQuickProfilerAdapterFactory::create(const QString &key)
12{
13 if (key != QLatin1String("QQuickProfilerAdapter"))
14 return nullptr;
15 return new QQuickProfilerAdapter(this);
16}
17
18QT_END_NAMESPACE
19
20#include "moc_qquickprofileradapterfactory.cpp"
21

source code of qtdeclarative/src/plugins/qmltooling/qmldbg_quickprofiler/qquickprofileradapterfactory.cpp