File indexing completed on 2024-05-12 13:30:25
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 #ifndef breezestyleplugin_h 0008 #define breezestyleplugin_h 0009 0010 #include <QStylePlugin> 0011 0012 namespace Breeze 0013 { 0014 class StylePlugin : public QStylePlugin 0015 { 0016 Q_OBJECT 0017 0018 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QStyleFactoryInterface" FILE "breeze.json") 0019 0020 public: 0021 //* constructor 0022 explicit StylePlugin(QObject *parent = nullptr) 0023 : QStylePlugin(parent) 0024 { 0025 } 0026 0027 //* returns list of valid keys 0028 QStringList keys() const; 0029 0030 //* create style 0031 QStyle *create(const QString &) override; 0032 }; 0033 0034 } 0035 0036 #endif