Browse Source

Add missing files

tags/1.9.4
falkTX 11 years ago
parent
commit
cf2ae28c5b
3 changed files with 71 additions and 1 deletions
  1. +1
    -1
      .gitignore
  2. +35
    -0
      source/modules/theme/CarlaStylePlugin.cpp
  3. +35
    -0
      source/modules/theme/CarlaStylePlugin.hpp

+ 1
- 1
.gitignore View File

@@ -72,7 +72,7 @@ source/tests/DGL2
source/tests/Print
source/tests/RtList
source/tests/Utils
source/tests/dgl-neko-test*
source/tests/Widgets

# Docs
doc/CarlaBackend/


+ 35
- 0
source/modules/theme/CarlaStylePlugin.cpp View File

@@ -0,0 +1,35 @@
/*
* Carla Style, based on Qt5 fusion style
* Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies)
* Copyright (C) 2013 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* For a full copy of the license see the doc/LGPL.txt file
*/

#include "CarlaStylePlugin.hpp"

CarlaStylePlugin::CarlaStylePlugin(QObject* parent)
: QStylePlugin(parent)
{
}

QStyle* CarlaStylePlugin::create(const QString& key)
{
return (key.toLower() == "carla") ? new CarlaStyle() : nullptr;
}

QStringList CarlaStylePlugin::keys() const
{
return QStringList() << "Carla";
}

Q_EXPORT_PLUGIN2(Carla, CarlaStylePlugin)

+ 35
- 0
source/modules/theme/CarlaStylePlugin.hpp View File

@@ -0,0 +1,35 @@
/*
* Carla Style, based on Qt5 fusion style
* Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies)
* Copyright (C) 2013 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* For a full copy of the license see the doc/LGPL.txt file
*/

#ifndef CARLA_STYLE_PLUGIN_HPP_INCLUDED
#define CARLA_STYLE_PLUGIN_HPP_INCLUDED

#include "CarlaStyle.hpp"

#include <QtGui/QStylePlugin>

class CarlaStylePlugin : public QStylePlugin
{
Q_OBJECT

public:
CarlaStylePlugin(QObject* parent = nullptr);
QStyle* create(const QString& key) override;
QStringList keys() const override;
};

#endif // CARLA_STYLE_PLUGIN_HPP_INCLUDED

Loading…
Cancel
Save