diff options
Diffstat (limited to 'tests/auto/qml/qqmlproperty')
-rw-r--r-- | tests/auto/qml/qqmlproperty/CMakeLists.txt | 4 | ||||
-rw-r--r-- | tests/auto/qml/qqmlproperty/tst_qqmlproperty.cpp | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/tests/auto/qml/qqmlproperty/CMakeLists.txt b/tests/auto/qml/qqmlproperty/CMakeLists.txt index 21f4372058..1c695251f9 100644 --- a/tests/auto/qml/qqmlproperty/CMakeLists.txt +++ b/tests/auto/qml/qqmlproperty/CMakeLists.txt @@ -12,16 +12,14 @@ list(APPEND test_data ${test_data_glob}) qt_internal_add_test(tst_qqmlproperty SOURCES - ../../shared/util.cpp ../../shared/util.h interfaces.h tst_qqmlproperty.cpp - INCLUDE_DIRECTORIES - ../../shared PUBLIC_LIBRARIES Qt::CorePrivate Qt::Gui Qt::GuiPrivate Qt::QmlPrivate + Qt::QuickTestUtilsPrivate TESTDATA ${test_data} ) diff --git a/tests/auto/qml/qqmlproperty/tst_qqmlproperty.cpp b/tests/auto/qml/qqmlproperty/tst_qqmlproperty.cpp index a1eae50048..a8c01675e4 100644 --- a/tests/auto/qml/qqmlproperty/tst_qqmlproperty.cpp +++ b/tests/auto/qml/qqmlproperty/tst_qqmlproperty.cpp @@ -41,7 +41,7 @@ #include <QtCore/qregularexpression.h> #endif #include <QtCore/private/qobject_p.h> -#include "../../shared/util.h" +#include <QtQuickTestUtils/private/qmlutils_p.h> #include "qobject.h" #include <QtQml/QQmlPropertyMap> @@ -140,7 +140,7 @@ class tst_qqmlproperty : public QQmlDataTest { Q_OBJECT public: - tst_qqmlproperty() {} + tst_qqmlproperty() : QQmlDataTest(QT_QMLTEST_DATADIR) {} private slots: void initTestCase() override; |