Qt
6.x
The Qt SDK
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
7
QT_BEGIN_NAMESPACE
8
9
class
QBsdMousePlugin
:
public
QGenericPlugin
10
{
11
Q_OBJECT
12
Q_PLUGIN_METADATA
(
IID
"org.qt-project.Qt.QGenericPluginFactoryInterface"
FILE
"bsdmouse.json"
)
13
14
public
:
15
QObject
*
create
(
const
QString
&
key
,
const
QString
&specification)
override
;
16
};
17
18
QObject
*
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
26
QT_END_NAMESPACE
27
28
#include "main.moc"
QBsdMouseHandler
Definition
qbsdmouse.h:18
QBsdMousePlugin
Definition
main.cpp:10
QBsdMousePlugin::create
QObject * create(const QString &key, const QString &specification) override
Implement this function to create a driver matching the type specified by the given key and specifica...
Definition
main.cpp:18
QGenericPlugin
\inmodule QtGui
Definition
qgenericplugin.h:16
QLatin1StringView
Definition
qlatin1stringview.h:31
QObject
\inmodule QtCore
Definition
qobject.h:90
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:127
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
Qt::CaseInsensitive
@ CaseInsensitive
Definition
qnamespace.h:1257
qbsdmouse.h
key
GLuint64 key
Definition
qopengles2ext.h:2268
QtPluginMetaDataKeys::IID
@ IID
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:117
Q_PLUGIN_METADATA
#define Q_PLUGIN_METADATA(x)
Definition
qtmetamacros.h:54
create
view create()
qtbase
src
plugins
generic
bsdmouse
main.cpp
Generated by
1.9.7