Revision control

Copy as Markdown

// 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"