Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.3KB

  1. /*
  2. * Carla Style, based on Qt5 fusion style
  3. * Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies)
  4. * Copyright (C) 2013 Filipe Coelho <falktx@falktx.com>
  5. *
  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.
  9. *
  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.
  14. *
  15. * For a full copy of the license see the doc/LGPL.txt file
  16. */
  17. #ifndef CARLA_STYLE_PLUGIN_HPP_INCLUDED
  18. #define CARLA_STYLE_PLUGIN_HPP_INCLUDED
  19. #include "CarlaDefines.h"
  20. #include <QtCore/Qt>
  21. #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
  22. # include <QtWidgets/QStylePlugin>
  23. #else
  24. # include <QtGui/QStylePlugin>
  25. #endif
  26. class CarlaStylePlugin : public QStylePlugin
  27. {
  28. Q_OBJECT
  29. #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
  30. Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QStyleFactoryInterface" FILE "carlastyle.json")
  31. #endif
  32. public:
  33. CarlaStylePlugin(QObject* parent = nullptr);
  34. QStyle* create(const QString& key) override;
  35. #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
  36. QStringList keys() const override;
  37. #endif
  38. };
  39. #endif // CARLA_STYLE_PLUGIN_HPP_INCLUDED