File indexing completed on 2024-05-05 17:42:26

0001 /*  This file is part of the KDE libraries
0002     SPDX-FileCopyrightText: 2013 Kevin Ottens <ervin+bluesystems@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #include <qpa/qplatformthemeplugin.h>
0008 
0009 #include "kdeplatformtheme.h"
0010 
0011 class KdePlatformThemePlugin : public QPlatformThemePlugin
0012 {
0013     Q_OBJECT
0014     Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1" FILE "kdeplatformtheme.json")
0015 public:
0016     KdePlatformThemePlugin(QObject *parent = nullptr)
0017         : QPlatformThemePlugin(parent)
0018     {
0019     }
0020 
0021     QPlatformTheme *create(const QString &key, const QStringList &paramList) override
0022     {
0023         Q_UNUSED(key)
0024         Q_UNUSED(paramList)
0025         return new KdePlatformTheme;
0026     }
0027 };
0028 
0029 #include "main.moc"