Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1
// Copyright (C) 2017 The Qt Company Ltd.
2
// Copyright (C) 2015-2016 Oleksandr Tymoshenko <gonzo@bluezbox.com>
3
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5
#include <qpa/qplatformintegrationplugin.h>
6
#include "
qbsdfbintegration.h
"
7
8
QT_BEGIN_NAMESPACE
9
10
using namespace
Qt::StringLiterals
;
11
12
class
QBsdFbIntegrationPlugin
:
public
QPlatformIntegrationPlugin
13
{
14
Q_OBJECT
15
Q_PLUGIN_METADATA
(
IID
QPlatformIntegrationFactoryInterface_iid
FILE
"bsdfb.json"
)
16
public
:
17
QPlatformIntegration
*
create
(
const
QString
&,
const
QStringList
&)
override
;
18
};
19
20
QPlatformIntegration
*
QBsdFbIntegrationPlugin::create
(
const
QString
& system,
const
QStringList
& paramList)
21
{
22
Q_UNUSED
(paramList);
23
if
(!system.
compare
(
"bsdfb"
_L1,
Qt::CaseInsensitive
))
24
return
new
QBsdFbIntegration
(paramList);
25
26
return
nullptr
;
27
}
28
29
QT_END_NAMESPACE
30
31
#include "main.moc"
32
QBsdFbIntegrationPlugin
Definition
main.cpp:13
QBsdFbIntegrationPlugin::create
QPlatformIntegration * create(const QString &, const QStringList &) override
Definition
main.cpp:20
QBsdFbIntegration
Definition
qbsdfbintegration.h:17
QPlatformIntegrationPlugin
Definition
qplatformintegrationplugin.h:28
QPlatformIntegration
The QPlatformIntegration class is the entry for WindowSystem specific functionality.
Definition
qplatformintegration.h:74
QStringList
\inmodule QtCore
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:129
QString::compare
int compare(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
Definition
qstring.cpp:6664
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
Qt::StringLiterals
Definition
qbytearray.h:803
Qt::CaseInsensitive
@ CaseInsensitive
Definition
qnamespace.h:1262
qbsdfbintegration.h
QPlatformIntegrationFactoryInterface_iid
#define QPlatformIntegrationFactoryInterface_iid
Definition
qplatformintegrationplugin.h:25
QtPluginMetaDataKeys::IID
@ IID
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
Q_PLUGIN_METADATA
#define Q_PLUGIN_METADATA(x)
Definition
qtmetamacros.h:54
Q_UNUSED
#define Q_UNUSED(x)
Definition
qtpreprocessorsupport.h:20
create
view create()
qtbase
src
plugins
platforms
bsdfb
main.cpp
Generated by
1.10.0