blob: 3308d5007e42109d990beb554d05af217a6185a2 (
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
29
|
// 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 "qbsdkeyboard.h"
QT_BEGIN_NAMESPACE
class QBsdKeyboardPlugin : public QGenericPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QGenericPluginFactoryInterface" FILE "bsdkeyboard.json")
public:
QObject *create(const QString &key, const QString &specification) override;
};
QObject *QBsdKeyboardPlugin::create(const QString &key,
const QString &specification)
{
if (!key.compare(QLatin1String("BsdKeyboard"), Qt::CaseInsensitive))
return new QBsdKeyboardHandler(key, specification);
return nullptr;
}
QT_END_NAMESPACE
#include "main.moc"
|