Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
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 <qpa/qplatformintegrationplugin.h>
5
#include "
qwaylandeglplatformintegration.h
"
6
7
QT_BEGIN_NAMESPACE
8
9
namespace
QtWaylandClient
{
10
11
class
QWaylandEglPlatformIntegrationPlugin
:
public
QPlatformIntegrationPlugin
12
{
13
Q_OBJECT
14
Q_PLUGIN_METADATA
(
IID
QPlatformIntegrationFactoryInterface_iid
FILE
"qwayland-egl.json"
)
15
public
:
16
QPlatformIntegration
*
create
(
const
QString
&,
const
QStringList
&)
override
;
17
};
18
19
QPlatformIntegration
*
QWaylandEglPlatformIntegrationPlugin::create
(
const
QString
& system,
const
QStringList
& paramList)
20
{
21
Q_UNUSED
(paramList);
22
Q_UNUSED
(system);
23
auto
*integration =
new
QWaylandEglPlatformIntegration
();
24
25
if
(!integration->init()) {
26
delete
integration;
27
integration =
nullptr
;
28
}
29
30
return
integration;
31
}
32
33
}
34
35
QT_END_NAMESPACE
36
37
#include "main.moc"
QPlatformIntegrationPlugin
Definition
qplatformintegrationplugin.h:28
QPlatformIntegration
The QPlatformIntegration class is the entry for WindowSystem specific functionality.
Definition
qplatformintegration.h:73
QStringList
\inmodule QtCore
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:127
QtWaylandClient::QWaylandEglPlatformIntegrationPlugin
Definition
main.cpp:12
QtWaylandClient::QWaylandEglPlatformIntegrationPlugin::create
QPlatformIntegration * create(const QString &, const QStringList &) override
Definition
main.cpp:19
QtWaylandClient::QWaylandEglPlatformIntegration
Definition
qwaylandeglplatformintegration.h:16
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
QtWaylandClient
Definition
qwaylandclientextension.h:15
QPlatformIntegrationFactoryInterface_iid
#define QPlatformIntegrationFactoryInterface_iid
Definition
qplatformintegrationplugin.h:25
QtPluginMetaDataKeys::IID
@ IID
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:117
Q_PLUGIN_METADATA
#define Q_PLUGIN_METADATA(x)
Definition
qtmetamacros.h:54
Q_UNUSED
#define Q_UNUSED(x)
Definition
qtpreprocessorsupport.h:20
qwaylandeglplatformintegration.h
create
view create()
qtwayland
src
plugins
platforms
qwayland-egl
main.cpp
Generated by
1.9.7