OSSIA
Open Scenario System for Interactive Application
Loading...
Searching...
No Matches
qml_plugin.hpp
1#pragma once
2#include <ossia/detail/config.hpp>
3
4#include <QQmlExtensionInterface>
5#include <QQmlExtensionPlugin>
6
7#include <ossia_export.h>
8
9#include <verdigris>
10namespace ossia::qt
11{
12#if defined(OSSIA_DISABLE_QT_PLUGIN)
13class OSSIA_EXPORT qml_plugin
14{
15public:
16 static void reg(const char* uri);
17};
18#else
19class OSSIA_EXPORT qml_plugin : public QQmlExtensionPlugin
20{
21 Q_OBJECT
22 Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
23
24public:
25 static void reg(const char* uri);
26
27 void registerTypes(const char* uri) override;
28};
29#endif
30}