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) 2017-2018 Red Hat, Inc
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
include
<
qpa
/
qplatformthemeplugin
.
h
>
6
#
include
"qxdgdesktopportaltheme.h"
7
8
QT_BEGIN_NAMESPACE
9
10
using
namespace
Qt::StringLiterals;
11
12
class
QXdgDesktopPortalThemePlugin
:
public
QPlatformThemePlugin
13
{
14
Q_OBJECT
15
Q_PLUGIN_METADATA(IID QPlatformThemeFactoryInterface_iid FILE
"xdgdesktopportal.json"
)
16
17
public
:
18
QPlatformTheme
*
create
(
const
QString
&
key
,
const
QStringList
&
params
)
override
;
19
};
20
21
QPlatformTheme *
QXdgDesktopPortalThemePlugin
::create(
const
QString &key,
const
QStringList ¶ms)
22
{
23
Q_UNUSED(params);
24
return
QXdgDesktopPortalTheme::isXdgPlugin(key) ?
new
QXdgDesktopPortalTheme
:
nullptr
;
25
}
26
27
QT_END_NAMESPACE
28
29
#
include
"main.moc"
QXdgDesktopPortalThemePlugin
Definition
main.cpp:13
QXdgDesktopPortalTheme
Definition
qxdgdesktopportaltheme.h:15
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtbase
src
plugins
platformthemes
xdgdesktopportal
main.cpp
Generated on
for Qt by
1.14.0