Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
7#if QT_CONFIG(translation)
8#include "qqmldebugtranslationservice.h"
9#endif
10
12
13QQmlDebugService *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
24QT_END_NAMESPACE
25
26#include "moc_qqmlpreviewservicefactory.cpp"
Combined button and popup list for selecting options.