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 "qqmldebuggerservicefactory.h" |
5 | #include "qqmlenginedebugservice.h" |
6 | #include "qv4debugservice.h" |
7 | #include <private/qqmldebugserviceinterfaces_p.h> |
8 | |
9 | QT_BEGIN_NAMESPACE |
10 | |
11 | QQmlDebugService *QQmlDebuggerServiceFactory::create(const QString &key) |
12 | { |
13 | if (key == QQmlEngineDebugServiceImpl::s_key) |
14 | return new QQmlEngineDebugServiceImpl(this); |
15 | |
16 | if (key == QV4DebugServiceImpl::s_key) |
17 | return new QV4DebugServiceImpl(this); |
18 | |
19 | return nullptr; |
20 | } |
21 | |
22 | QT_END_NAMESPACE |
23 | |
24 | #include "moc_qqmldebuggerservicefactory.cpp" |
25 |