blob: 59d995f8b9cbc3b64edb7aa8bad3cd55869dc2be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright (C) 2015-2016 Oleksandr Tymoshenko <gonzo@bluezbox.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#include <QtGui/qgenericplugin.h>
#include "qbsdmouse.h"
QT_BEGIN_NAMESPACE
class QBsdMousePlugin : public QGenericPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QGenericPluginFactoryInterface" FILE "bsdmouse.json")
public:
QObject *create(const QString &key, const QString &specification) override;
};
QObject *QBsdMousePlugin::create(const QString &key, const QString &specification)
{
if (!key.compare(QLatin1String("BsdMouse"), Qt::CaseInsensitive))
return new QBsdMouseHandler(key, specification);
return nullptr;
}
QT_END_NAMESPACE
#include "main.moc"
|