diff options
author | Juha Vuolle <[email protected]> | 2025-04-25 10:08:33 +0300 |
---|---|---|
committer | Juha Vuolle <[email protected]> | 2025-04-28 15:14:18 +0300 |
commit | f79c2ffe29021993130c043ccf0329e01d5e7749 (patch) | |
tree | 6c2e3087fe0858ae9df6365464ee528c4e2145d6 /tests | |
parent | da0f590abdcec851e74b2d3b812cd9a309cbc542 (diff) |
Fix quickdialog test compilation if draganddrop or listview is disabled
Headers like qquickplatformfolderdialog_p.h aren't part of build
if these features are disabled. Use same condition to enable the tests
as the needed headers have.
Task-number: QTBUG-136101
Pick-to: 6.9 6.8
Change-Id: I898ed607b4c6ac540fecacceaac1f630e64d3167
Reviewed-by: Oliver Eftevaag <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/quickdialogs/CMakeLists.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/auto/quickdialogs/CMakeLists.txt b/tests/auto/quickdialogs/CMakeLists.txt index 3543df1893..3d42fe427b 100644 --- a/tests/auto/quickdialogs/CMakeLists.txt +++ b/tests/auto/quickdialogs/CMakeLists.txt @@ -2,9 +2,11 @@ # SPDX-License-Identifier: BSD-3-Clause if(NOT ANDROID) # temporarily disabled until QTBUG-100991 is fixed - add_subdirectory(qquickfiledialogimpl) - add_subdirectory(qquickfolderdialogimpl) - add_subdirectory(qquickfontdialogimpl) + if(QT_FEATURE_quick_listview AND QT_FEATURE_quick_draganddrop) + add_subdirectory(qquickfiledialogimpl) + add_subdirectory(qquickfolderdialogimpl) + add_subdirectory(qquickfontdialogimpl) + endif() add_subdirectory(qquickcolordialogimpl) endif() add_subdirectory(qquickmessagedialogimpl) |