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 <QtGui/qgenericplugin.h>
5#include <QtInputSupport/private/qevdevtouchmanager_p.h>
6
7QT_BEGIN_NAMESPACE
8
9class QEvdevTouchScreenPlugin : public QGenericPlugin
10{
11 Q_OBJECT
12 Q_PLUGIN_METADATA(IID QGenericPluginFactoryInterface_iid FILE "evdevtouch.json")
13
14public:
15 QEvdevTouchScreenPlugin();
16
17 QObject* create(const QString &key, const QString &specification) override;
18};
19
20QEvdevTouchScreenPlugin::QEvdevTouchScreenPlugin()
21{
22}
23
24QObject* QEvdevTouchScreenPlugin::create(const QString &key,
25 const QString &spec)
26{
27 if (!key.compare(other: QLatin1String("EvdevTouch"), cs: Qt::CaseInsensitive))
28 return new QEvdevTouchManager(key, spec);
29
30 return nullptr;
31}
32
33QT_END_NAMESPACE
34
35#include "main.moc"
36

source code of qtbase/src/plugins/generic/evdevtouch/main.cpp