Files
qt-creator/share/qtcreator/templates/wizards/projects/qtquick2-extension/plugin.h
Eike Ziller 6c9f75ff4a Transform Qt Quick 2 Extension Plugin wizard to JSON
Change-Id: I0e59219adeb5b3aa08a99da7c0bb657d793ba2e1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-08-28 16:38:23 +00:00

23 lines
392 B
C++

%{Cpp:LicenseTemplate}\
@if '%{Cpp:PragmaOnce}'
#pragma once
@else
#ifndef %{PLUGINGUARD}
#define %{PLUGINGUARD}
@endif
#include <QQmlExtensionPlugin>
class %{PluginName} : public QQmlExtensionPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
public:
void registerTypes(const char *uri) override;
};
@if ! '%{Cpp:PragmaOnce}'
#endif // %{PLUGINGUARD}
@endif