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.

CarlaStylePlugin.hpp 1.4KB

11 years ago
10 years ago
11 years ago
11 years ago
11 years ago
11 years ago
10 years ago
11 years ago
10 years ago
11 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  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>
  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 "CarlaStyle.hpp"
  20. #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
  21. # include <QtWidgets/QStylePlugin>
  22. #else
  23. # include <QtGui/QStylePlugin>
  24. #endif
  25. class CarlaStylePlugin : public QStylePlugin
  26. {
  27. Q_OBJECT
  28. #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
  29. Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QStyleFactoryInterface" FILE "carlastyle.json")
  30. #endif
  31. public:
  32. CarlaStylePlugin(QObject* parentObj = nullptr);
  33. QStyle* create(const QString& key) override;
  34. #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
  35. QStringList keys() const override;
  36. #endif
  37. CARLA_DECLARE_NON_COPYABLE(CarlaStylePlugin);
  38. };
  39. #endif // CARLA_STYLE_PLUGIN_HPP_INCLUDED