Files
qt-creator/share/qtcreator/templates/wizards/autotest/files/setup.cpp
Christian Stenger 0614d9ba4d AutoTest: Enhance QtQuick Test wizard
The wizard can now generate setup code as well.

Fixes: QTCREATORBUG-26741
Change-Id: If67ba0556001c5acd9ad6e5d98458771589f2ebd
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-01-12 12:02:46 +00:00

19 lines
367 B
C++

%{Cpp:LicenseTemplate}\
#include "setup.h"
void Setup::applicationAvailable()
{
// custom code that does not require QQmlEngine
}
void Setup::qmlEngineAvailable(QQmlEngine *engine)
{
// custom code that needs QQmlEngine, register QML types, add import paths,...
}
void Setup::cleanupTestCase()
{
// custom code to clean up before destruction starts
}