aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-theme-engine/src/lthemeengine-qtplugin/main.cpp
blob: 12e4a581d27edbb9460b807d93b7dd5179b7a2ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <qpa/qplatformthemeplugin.h>
#include "lthemeengineplatformtheme.h"

QT_BEGIN_NAMESPACE

class lthemeenginePlatformThemePlugin: public QPlatformThemePlugin{
    Q_OBJECT
    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1" FILE "lthemeengine.json")
public:
    QPlatformTheme *create(const QString &key, const QStringList &params);
};

QPlatformTheme *lthemeenginePlatformThemePlugin::create(const QString &key, const QStringList &params){
    Q_UNUSED(params);
    if (key.toLower() == "lthemeengine")
        return new lthemeenginePlatformTheme();
    return NULL;
}

QT_END_NAMESPACE

#include "main.moc"
bgstack15