2022-03-10 18:49:42 +00:00
|
|
|
#include <QtQuickTest/quicktest.h>
|
|
|
|
#include <QQmlEngine>
|
|
|
|
|
2022-03-21 11:04:11 +00:00
|
|
|
#include "TestHelpers/MonitorQtOutput.h"
|
|
|
|
|
2022-03-10 18:49:42 +00:00
|
|
|
class TestSetup : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
TestSetup() {}
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void qmlEngineAvailable(QQmlEngine *engine)
|
|
|
|
{
|
|
|
|
// TODO: Workaround until we make StatusQ a CMake library
|
2022-04-19 17:45:26 +00:00
|
|
|
engine->addImportPath("../src/");
|
|
|
|
engine->addImportPath("./qml/");
|
2022-03-21 11:04:11 +00:00
|
|
|
// TODO: Alternative to not yet supported QML_ELEMENT
|
|
|
|
qmlRegisterType<MonitorQtOutput>("StatusQ.TestHelpers", 0, 1, "MonitorQtOutput");
|
2022-03-10 18:49:42 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
QUICK_TEST_MAIN_WITH_SETUP(TestControls, TestSetup)
|
|
|
|
|
|
|
|
#include "main.moc"
|