summaryrefslogtreecommitdiffstats
path: root/tests/testqml.h
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-09-08 18:18:16 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-11 17:22:58 -0700
commitd5bbfac6a33c30020255a10c82305276d95d5ab6 (patch)
tree8500e021aabce1b2f5f82a58c9b0d4a7ac686b88 /tests/testqml.h
parentd0edc296360e7653a4c8b672cfb136581c4a10f0 (diff)
downloadsubsurface-d5bbfac6a33c30020255a10c82305276d95d5ab6.tar.gz
tests: change testqml to allow direct register of C++ objects
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'tests/testqml.h')
-rw-r--r--tests/testqml.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/testqml.h b/tests/testqml.h
new file mode 100644
index 000000000..5c4bf0c16
--- /dev/null
+++ b/tests/testqml.h
@@ -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