Files
qt-creator/share/qtcreator/templates/wizards/projects/qtquick2-extension/plugin.h

23 lines
392 B
C
Raw Normal View History

%{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