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 "qqmlprofilerservice.h" |
5 | #include "qqmlenginecontrolservice.h" |
6 | #include "qqmlprofilerservicefactory.h" |
7 | |
8 | QT_BEGIN_NAMESPACE |
9 | |
10 | QQmlDebugService *QQmlProfilerServiceFactory::create(const QString &key) |
11 | { |
12 | if (key == QQmlProfilerServiceImpl::s_key) |
13 | return new QQmlProfilerServiceImpl(this); |
14 | |
15 | if (key == QQmlEngineControlServiceImpl::s_key) |
16 | return new QQmlEngineControlServiceImpl(this); |
17 | |
18 | return nullptr; |
19 | } |
20 | |
21 | QT_END_NAMESPACE |
22 | |
23 | #include "moc_qqmlprofilerservicefactory.cpp" |
24 |