/src/qtbase/src/plugins/platforms/minimal/main.cpp
Line | Count | Source |
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 | | // Qt-Security score:significant reason:default |
4 | | |
5 | | #include <qpa/qplatformintegrationplugin.h> |
6 | | #include "qminimalintegration.h" |
7 | | |
8 | | QT_BEGIN_NAMESPACE |
9 | | |
10 | | using namespace Qt::StringLiterals; |
11 | | |
12 | | class QMinimalIntegrationPlugin : public QPlatformIntegrationPlugin |
13 | | { |
14 | 0 | Q_OBJECT |
15 | 0 | Q_PLUGIN_METADATA(IID QPlatformIntegrationFactoryInterface_iid FILE "minimal.json") |
16 | 0 | public: |
17 | 0 | QPlatformIntegration *create(const QString&, const QStringList&) override; |
18 | 0 | }; |
19 | 0 |
|
20 | 0 | QPlatformIntegration *QMinimalIntegrationPlugin::create(const QString& system, const QStringList& paramList) |
21 | 146k | { |
22 | 146k | if (!system.compare("minimal"_L1, Qt::CaseInsensitive)) |
23 | 146k | return new QMinimalIntegration(paramList); |
24 | | |
25 | 0 | return nullptr; |
26 | 146k | } |
27 | | |
28 | | QT_END_NAMESPACE |
29 | | |
30 | | #include "main.moc" |