2 * Carla Style, based on Qt5 fusion style
3 * Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies)
4 * Copyright (C) 2013-2014 Filipe Coelho <falktx@falktx.com>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
15 * For a full copy of the license see the doc/LGPL.txt file
18 #ifndef CARLA_STYLE_PLUGIN_HPP_INCLUDED
19 #define CARLA_STYLE_PLUGIN_HPP_INCLUDED
21 #include "CarlaStyle.hpp"
23 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
24 # include <QtWidgets/QStylePlugin>
26 # include <QtGui/QStylePlugin>
29 class CarlaStylePlugin
: public QStylePlugin
32 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
33 Q_PLUGIN_METADATA(IID
"org.qt-project.Qt.QStyleFactoryInterface" FILE "carlastyle.json")
37 CarlaStylePlugin(QObject
* parentObj
= nullptr);
39 QStyle
* create(const QString
& key
) override
;
40 #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
41 QStringList
keys() const override
;
44 CARLA_DECLARE_NON_COPYABLE(CarlaStylePlugin
);
47 #endif // CARLA_STYLE_PLUGIN_HPP_INCLUDED