File indexing completed on 2024-07-14 04:54:59

0001 /*
0002     SPDX-FileCopyrightText: 2018 Ralf Habacker ralf.habacker @freenet.de
0003 
0004     This file is part of libalkimia.
0005 
0006     SPDX-License-Identifier: LGPL-2.1-or-later
0007 */
0008 #ifndef QMLALKIMIAPLUGIN_H
0009 #define QMLALKIMIAPLUGIN_H
0010 
0011 #include <QtGlobal>
0012 #if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
0013 #include <QtQml>
0014 #else
0015 #include <QtDeclarative>
0016 class QQmlExtensionPlugin : public QDeclarativeExtensionPlugin
0017 {
0018 };
0019 #undef Q_PLUGIN_METADATA
0020 #define Q_PLUGIN_METADATA(s)
0021 #define Q_DECL_OVERRIDE
0022 #endif
0023 
0024 class QmlAlkimiaPlugin : public QQmlExtensionPlugin
0025 {
0026     Q_OBJECT
0027     Q_PLUGIN_METADATA(IID "org.kde.alkimia")
0028 
0029 public:
0030     void registerTypes(const char *uri) Q_DECL_OVERRIDE;
0031 };
0032 
0033 #endif // QMLALKIMIAPLUGIN_H