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 ¶ms) override; |
16 | }; |
17 | |
18 | QPlatformTheme *QGtk3ThemePlugin::create(const QString &key, const QStringList ¶ms) |
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 | |
27 | QT_END_NAMESPACE |
28 | |
29 | #include "main.moc" |
30 |