forked from qt-creator/qt-creator
The wizard can now generate setup code as well. Fixes: QTCREATORBUG-26741 Change-Id: If67ba0556001c5acd9ad6e5d98458771589f2ebd Reviewed-by: David Schulz <david.schulz@qt.io>
28 lines
485 B
C++
28 lines
485 B
C++
%{Cpp:LicenseTemplate}\
|
|
|
|
@if '%{Cpp:PragmaOnce}'
|
|
#pragma once
|
|
@else
|
|
#ifndef %{JS: Cpp.headerGuard('setup.h')}
|
|
#define %{JS: Cpp.headerGuard('setup.h')}
|
|
@endif
|
|
|
|
#include <QObject>
|
|
#include <QQmlEngine>
|
|
|
|
class Setup : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
Setup() = default;
|
|
|
|
public slots:
|
|
void applicationAvailable();
|
|
void qmlEngineAvailable(QQmlEngine *engine);
|
|
void cleanupTestCase();
|
|
};
|
|
|
|
@if 'not %{Cpp:PragmaOnce}'
|
|
#endif // %{JS: Cpp.headerGuard('setup.h')}
|
|
@endif
|