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
main.cpp
Go to the documentation of this file.
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
7
QT_BEGIN_NAMESPACE
8
9
class
QEvdevTouchScreenPlugin :
public
QGenericPlugin
10
{
11
Q_OBJECT
12
Q_PLUGIN_METADATA(IID QGenericPluginFactoryInterface_iid FILE
"evdevtouch.json"
)
13
14
public
:
15
QEvdevTouchScreenPlugin();
16
17
QObject* create(
const
QString &key,
const
QString &specification) override;
18
};
19
20
QEvdevTouchScreenPlugin::QEvdevTouchScreenPlugin()
21
{
22
}
23
24
QObject* QEvdevTouchScreenPlugin::create(
const
QString &key,
25
const
QString &spec)
26
{
27
if
(!key.compare(QLatin1String(
"EvdevTouch"
), Qt::CaseInsensitive))
28
return
new
QEvdevTouchManager(key, spec);
29
30
return
nullptr
;
31
}
32
33
QT_END_NAMESPACE
34
35
#
include
"main.moc"
qtbase
src
plugins
generic
evdevtouch
main.cpp
Generated on
for Qt by
1.14.0