Files
qt-creator/share/qtcreator/templates/wizards/projects/qtquick2-extension/object.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

24 lines
393 B
C++

%{Cpp:LicenseTemplate}\
@if '%{Cpp:PragmaOnce}'
#pragma once
@else
#ifndef %{OBJECTGUARD}
#define %{OBJECTGUARD}
@endif
#include <QQuickItem>
class %{ObjectName} : public QQuickItem
{
Q_OBJECT
Q_DISABLE_COPY(%{ObjectName})
public:
explicit %{ObjectName}(QQuickItem *parent = nullptr);
~%{ObjectName}() override;
};
@if ! '%{Cpp:PragmaOnce}'
#endif // %{OBJECTGUARD}
@endif