aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldbg_quick3dprofiler/qquick3dprofileradapterfactory.cpp
blob: a22f5af3525cb7e08f014637718c6297b7d01b91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#include "qquick3dprofileradapterfactory.h"
#include "qquick3dprofileradapter.h"
#include <private/qqmldebugconnector_p.h>
#include <private/qqmldebugserviceinterfaces_p.h>

QT_BEGIN_NAMESPACE

QQmlAbstractProfilerAdapter *QQuick3DProfilerAdapterFactory::create(const QString &key)
{
    if (key != QLatin1String("QQuick3DProfilerAdapter"))
        return nullptr;
    return new QQuick3DProfilerAdapter(this);
}

QT_END_NAMESPACE

#include "moc_qquick3dprofileradapterfactory.cpp"