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) 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
// Qt-Security score:significant reason:default
4
5
#
include
<
qpa
/
qplatformthemeplugin
.
h
>
6
#
include
"qgtk3theme.h"
7
8
QT_BEGIN_NAMESPACE
9
10
class
QGtk3ThemePlugin
:
public
QPlatformThemePlugin
11
{
12
Q_OBJECT
13
Q_PLUGIN_METADATA(IID QPlatformThemeFactoryInterface_iid FILE
"gtk3.json"
)
14
15
public
:
16
QPlatformTheme
*
create
(
const
QString
&
key
,
const
QStringList
&
params
)
override
;
17
};
18
19
QPlatformTheme *
QGtk3ThemePlugin
::create(
const
QString &key,
const
QStringList ¶ms)
20
{
21
Q_UNUSED(params);
22
if
(!key.compare(QLatin1StringView(QGtk3Theme::name), Qt::CaseInsensitive))
23
return
new
QGtk3Theme
;
24
25
return
nullptr
;
26
}
27
28
QT_END_NAMESPACE
29
30
#
include
"main.moc"
QGtk3ThemePlugin
Definition
main.cpp:11
QGtk3Theme
Definition
qgtk3theme.h:15
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtbase
src
plugins
platformthemes
gtk3
main.cpp
Generated on
for Qt by
1.14.0