Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qqmlpreviewservicefactory.cpp
Go to the documentation of this file.
1
// Copyright (C) 2018 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
// Qt-Security score:significant
4
5
#
include
"qqmlpreviewservicefactory.h"
6
#
include
"qqmlpreviewservice.h"
7
#
if
QT_CONFIG
(
translation
)
8
#
include
"qqmldebugtranslationservice.h"
9
#
endif
10
11
QT_BEGIN_NAMESPACE
12
13
QQmlDebugService *QQmlPreviewServiceFactory::create(
const
QString &key)
14
{
15
if
(key == QQmlPreviewServiceImpl::s_key)
16
return
new
QQmlPreviewServiceImpl(
this
);
17
#
if
QT_CONFIG
(
translation
)
18
if
(key == QQmlDebugTranslationServiceImpl::s_key)
19
return
new
QQmlDebugTranslationServiceImpl(
this
);
20
#
endif
21
return
nullptr
;
22
}
23
24
QT_END_NAMESPACE
25
26
#
include
"moc_qqmlpreviewservicefactory.cpp"
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
plugins
qmltooling
qmldbg_preview
qqmlpreviewservicefactory.cpp
Generated on
for Qt by
1.18.0