aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuha Vuolle <[email protected]>2025-04-25 10:13:22 +0300
committerJuha Vuolle <[email protected]>2025-04-28 15:14:22 +0300
commitc4bf70e06c0e6b40b26cdfd94cf17d21cb70a770 (patch)
treea68db174a1e02b15c6231e49820db51aba9ef7a5
parentf79c2ffe29021993130c043ccf0329e01d5e7749 (diff)
Fix tst_qmllint compilation if library support is disabled
The definitions of environment_data(), environment() and maxWarnings() were behind 'library' feature flag, but declarations weren't. Removed the definitions from behind the flags. Task-number: QTBUG-136101 Pick-to: 6.9 6.8 Change-Id: Ic1878d0482c311c444fa40903ae18b22c2f5d24d Reviewed-by: Oliver Eftevaag <[email protected]>
-rw-r--r--tests/auto/qml/qmllint/tst_qmllint.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp
index 1852c34437..0f9c3e0a32 100644
--- a/tests/auto/qml/qmllint/tst_qmllint.cpp
+++ b/tests/auto/qml/qmllint/tst_qmllint.cpp
@@ -3052,6 +3052,8 @@ void TestQmllint::qdsPlugin()
runTest(fileName, expectedResult);
}
+#endif // QT_CONFIG(library)
+
void TestQmllint::environment_data()
{
QTest::addColumn<QString>("file");
@@ -3112,8 +3114,6 @@ void TestQmllint::maxWarnings()
runQmllint(testFile("badScript.qml"), true, {"--max-warnings", "2"});
}
-#endif
-
void TestQmllint::ignoreSettingsNotCommandLineOptions()
{
const QString importPath = testFile(u"ImportPath"_s);