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 <qpa/qplatformintegrationplugin.h>
5#include <private/qeglfsintegration_p.h>
6
7QT_BEGIN_NAMESPACE
8
9using namespace Qt::StringLiterals;
10
11class QEglFSIntegrationPlugin : public QPlatformIntegrationPlugin
12{
13 Q_OBJECT
14 Q_PLUGIN_METADATA(IID QPlatformIntegrationFactoryInterface_iid FILE "eglfs.json")
15public:
16 QPlatformIntegration *create(const QString&, const QStringList&) override;
17};
18
19QPlatformIntegration* QEglFSIntegrationPlugin::create(const QString& system, const QStringList& paramList)
20{
21 Q_UNUSED(paramList);
22 if (!system.compare(other: "eglfs"_L1, cs: Qt::CaseInsensitive))
23 return new QEglFSIntegration;
24
25 return nullptr;
26}
27
28QT_END_NAMESPACE
29
30#include "qeglfsmain.moc"
31

source code of qtbase/src/plugins/platforms/eglfs/qeglfsmain.cpp