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) 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/qplatformthemeplugin.h>
5
#include "
qgtk3theme.h
"
6
7
QT_BEGIN_NAMESPACE
8
9
class
QGtk3ThemePlugin
:
public
QPlatformThemePlugin
10
{
11
Q_OBJECT
12
Q_PLUGIN_METADATA
(
IID
QPlatformThemeFactoryInterface_iid
FILE
"gtk3.json"
)
13
14
public
:
15
QPlatformTheme
*
create
(
const
QString
&
key
,
const
QStringList
&
params
)
override
;
16
};
17
18
QPlatformTheme
*
QGtk3ThemePlugin::create
(
const
QString
&
key
,
const
QStringList
&
params
)
19
{
20
Q_UNUSED
(
params
);
21
if
(!
key
.compare(
QLatin1StringView
(
QGtk3Theme::name
),
Qt::CaseInsensitive
))
22
return
new
QGtk3Theme
;
23
24
return
nullptr
;
25
}
26
27
QT_END_NAMESPACE
28
29
#include "main.moc"
QGtk3ThemePlugin
Definition
main.cpp:10
QGtk3ThemePlugin::create
QPlatformTheme * create(const QString &key, const QStringList ¶ms) override
Definition
main.cpp:18
QGtk3Theme
Definition
qgtk3theme.h:14
QGtk3Theme::name
static const char * name
Definition
qgtk3theme.h:35
QLatin1StringView
Definition
qlatin1stringview.h:32
QPlatformThemePlugin
The QPlatformThemePlugin class provides an abstraction for theme plugins.
Definition
qplatformthemeplugin.h:27
QPlatformTheme
The QPlatformTheme class allows customizing the UI based on themes.
Definition
qplatformtheme.h:43
QStringList
\inmodule QtCore
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:129
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
Qt::CaseInsensitive
@ CaseInsensitive
Definition
qnamespace.h:1262
qgtk3theme.h
key
GLuint64 key
Definition
qopengles2ext.h:2268
params
void ** params
Definition
qopengles2ext.h:160
QPlatformThemeFactoryInterface_iid
#define QPlatformThemeFactoryInterface_iid
Definition
qplatformthemeplugin.h:24
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
platformthemes
gtk3
main.cpp
Generated by
1.10.0