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 "qbsdkeyboard.h"
6
8
10{
12 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QGenericPluginFactoryInterface" FILE "bsdkeyboard.json")
13
14public:
15 QObject *create(const QString &key, const QString &specification) override;
16};
17
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
28
29#include "main.moc"
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
\inmodule QtGui
\inmodule QtCore
Definition qobject.h:90
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
Combined button and popup list for selecting options.
@ CaseInsensitive
GLuint64 key
#define Q_OBJECT
#define Q_PLUGIN_METADATA(x)
view create()