Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qwlhardwarelayerintegrationfactory.cpp
Go to the documentation of this file.
1
// Copyright (C) 2018 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4
#include "
qwlhardwarelayerintegrationfactory_p.h
"
5
#include "
qwlhardwarelayerintegrationplugin_p.h
"
6
#include "
qwlhardwarelayerintegration_p.h
"
7
8
#include <QtCore/private/qfactoryloader_p.h>
9
#include <QtCore/QCoreApplication>
10
#include <QtCore/QDir>
11
12
QT_BEGIN_NAMESPACE
13
14
namespace
QtWayland
{
15
16
Q_GLOBAL_STATIC_WITH_ARGS
(
QFactoryLoader
, qwhlifLoader,
17
(
QtWaylandHardwareLayerIntegrationFactoryInterface_iid
,
QLatin1String
(
"/wayland-hardware-layer-integration"
),
Qt::CaseInsensitive
))
18
19
QStringList
HardwareLayerIntegrationFactory::keys
()
20
{
21
return
qwhlifLoader->keyMap().values();
22
}
23
24
HardwareLayerIntegration
*
HardwareLayerIntegrationFactory::create
(
const
QString
&
name
,
const
QStringList
&
args
)
25
{
26
return
qLoadPlugin<HardwareLayerIntegration, HardwareLayerIntegrationPlugin>(qwhlifLoader(),
name
,
args
);
27
}
28
29
}
30
31
QT_END_NAMESPACE
QFactoryLoader
Definition
qfactoryloader_p.h:62
QStringList
\inmodule QtCore
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:127
QtWayland::HardwareLayerIntegrationFactory::keys
static QStringList keys()
QtWayland::HardwareLayerIntegrationFactory::create
static HardwareLayerIntegration * create(const QString &name, const QStringList &args)
Definition
qwlhardwarelayerintegrationfactory.cpp:24
QtWayland::HardwareLayerIntegration
Definition
qwlhardwarelayerintegration_p.h:32
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
QtWayland
Definition
qwaylanddatadevice_p.h:34
Qt::CaseInsensitive
@ CaseInsensitive
Definition
qnamespace.h:1257
Q_GLOBAL_STATIC_WITH_ARGS
#define Q_GLOBAL_STATIC_WITH_ARGS(TYPE, NAME, ARGS)
Definition
qglobalstatic.h:99
name
GLuint name
Definition
qopengles2ext.h:156
QLatin1String
QLatin1StringView QLatin1String
Definition
qstringfwd.h:31
qwlhardwarelayerintegration_p.h
qwlhardwarelayerintegrationfactory_p.h
qwlhardwarelayerintegrationplugin_p.h
QtWaylandHardwareLayerIntegrationFactoryInterface_iid
#define QtWaylandHardwareLayerIntegrationFactoryInterface_iid
Definition
qwlhardwarelayerintegrationplugin_p.h:30
args
QJSValueList args
Definition
src_script_qjsengine.cpp:12
qtwayland
src
compositor
hardware_integration
qwlhardwarelayerintegrationfactory.cpp
Generated by
1.9.7