From 03a23b0138dd660dcc1fe71f5bfca100016b97f7 Mon Sep 17 00:00:00 2001 From: Dalton Durst Date: Thu, 23 Dec 2021 17:30:01 -0600 Subject: Make the qmltests test imports, at least The loadmodule.qml and loadmodule2.qml files never actually loaded in their views but the test case was still passing. I wasn't able to discern what the tests were actually supposed to do when they were working. Therefore, I removed the majority of the tests and just made sure the import for qmenumodel is working. At least it does *something* now, I guess. --- tests/client/qmlfiles.h.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/client/qmlfiles.h.in') diff --git a/tests/client/qmlfiles.h.in b/tests/client/qmlfiles.h.in index 876b78f..631390b 100644 --- a/tests/client/qmlfiles.h.in +++ b/tests/client/qmlfiles.h.in @@ -1,3 +1,4 @@ -const char* QML_BASE_DIR = "@libqmenumodel_BINARY_DIR@"; -const char* LOADMODEL_QML = "@CMAKE_CURRENT_SOURCE_DIR@/loadmodel.qml"; -const char* LOADMODEL2_QML = "@CMAKE_CURRENT_SOURCE_DIR@/loadmodel2.qml"; +#include + +const QString QML_BASE_DIR = QStringLiteral("@libqmenumodel_BINARY_DIR@"); +const QString IMPORTTEST_QML = QStringLiteral("@CMAKE_CURRENT_SOURCE_DIR@/importtest.qml"); -- cgit v1.2.3