tests: change testqml to allow direct register of C++ objects

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-09-08 18:18:16 +02:00 committed by Dirk Hohndel
parent d0edc29636
commit d5bbfac6a3
3 changed files with 38 additions and 37 deletions

19
tests/testqml.h Normal file
View file

@ -0,0 +1,19 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef TESTQML_H
#define TESTQML_H
#include <QtQuickTest>
#include <QQmlEngine>
#include <QQmlContext>
#include <QObject>
class QMLTestSetup : public QObject {
Q_OBJECT
public:
QMLTestSetup() {}
public slots:
void qmlEngineAvailable(QQmlEngine *engine);
};
#endif // TESTQML_H