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

source code of qtbase/src/plugins/platformthemes/gtk3/main.cpp