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
"qbsdkeyboard.h"
6
7
QT_BEGIN_NAMESPACE
8
9
class
QBsdKeyboardPlugin
:
public
QGenericPlugin
10
{
11
Q_OBJECT
12
Q_PLUGIN_METADATA(IID
"org.qt-project.Qt.QGenericPluginFactoryInterface"
FILE
"bsdkeyboard.json"
)
13
14
public
:
15
QObject
*
create
(
const
QString
&
key
,
const
QString
&
specification
)
override
;
16
};
17
18
QObject *
QBsdKeyboardPlugin
::create(
const
QString &key,
19
const
QString &specification)
20
{
21
if
(!key.compare(QLatin1String(
"BsdKeyboard"
), Qt::CaseInsensitive))
22
return
new
QBsdKeyboardHandler
(key, specification);
23
24
return
nullptr
;
25
}
26
27
QT_END_NAMESPACE
28
29
#
include
"main.moc"
QBsdKeyboardHandler
Definition
qbsdkeyboard.h:60
QBsdKeyboardPlugin
Definition
main.cpp:10
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtbase
src
plugins
generic
bsdkeyboard
main.cpp
Generated on
for Qt by
1.14.0