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) 2015-2016 Oleksandr Tymoshenko <gonzo@bluezbox.com>
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 "qbsdmouse.h"
6
8
10{
11 Q_OBJECT
12 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QGenericPluginFactoryInterface" FILE "bsdmouse.json")
13
14public:
16};
17
18QObject *QBsdMousePlugin::create(const QString &key, const QString &specification)
19{
20 if (!key.compare(QLatin1String("BsdMouse"), Qt::CaseInsensitive))
21 return new QBsdMouseHandler(key, specification);
22
23 return nullptr;
24}
25
26QT_END_NAMESPACE
27
28#include "main.moc"