mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
tests: change testqml to allow direct register of C++ objects
Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
d0edc29636
commit
d5bbfac6a3
3 changed files with 38 additions and 37 deletions
19
tests/testqml.h
Normal file
19
tests/testqml.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue