mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-07-01 22:25:26 +02:00
22 lines
341 B
C++
22 lines
341 B
C++
![]() |
#include <QtQuickTest/quicktest.h>
|
||
|
#include <QQmlEngine>
|
||
|
#include <QQmlContext>
|
||
|
|
||
|
class Setup : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
Setup() {}
|
||
|
|
||
|
public slots:
|
||
|
|
||
|
void qmlEngineAvailable(QQmlEngine *engine)
|
||
|
{
|
||
|
engine->addImportPath("qrc:/tests/qml");
|
||
|
}
|
||
|
};
|
||
|
|
||
|
QUICK_TEST_MAIN_WITH_SETUP(testqml, Setup)
|
||
|
#include "main.moc"
|