File indexing completed on 2024-04-28 05:26:27

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