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