File indexing completed on 2024-05-05 05:35:32

0001 #ifndef oxygenstyleplugin_h
0002 #define oxygenstyleplugin_h
0003 /*
0004     SPDX-FileCopyrightText: 2014 Hugo Pereira Da Costa <hugo.pereira@free.fr>
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006  */
0007 
0008 #include <QStylePlugin>
0009 
0010 namespace Oxygen
0011 {
0012 class StylePlugin : public QStylePlugin
0013 {
0014     Q_OBJECT
0015 
0016     Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QStyleFactoryInterface" FILE "oxygen.json")
0017 
0018 public:
0019     //* constructor
0020     explicit StylePlugin(QObject *parent = nullptr)
0021         : QStylePlugin(parent)
0022     {
0023     }
0024 
0025     //* destructor
0026     ~StylePlugin();
0027 
0028     //* returns list of valid keys
0029     QStringList keys() const;
0030 
0031     //* create style
0032     QStyle *create(const QString &) override;
0033 };
0034 }
0035 
0036 #endif