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
9
11{
12 Q_OBJECT
13 Q_PLUGIN_METADATA(IID QPlatformThemeFactoryInterface_iid FILE "gtk3.json")
14
15public:
17};
18
19QPlatformTheme *QGtk3ThemePlugin::create(const QString &key, const QStringList &params)
20{
21 Q_UNUSED(params);
22 if (!key.compare(QLatin1StringView(QGtk3Theme::name), Qt::CaseInsensitive))
23 return new QGtk3Theme;
24
25 return nullptr;
26}
27
28QT_END_NAMESPACE
29
30#include "main.moc"