diff options
| author | Juha Vuolle <juha.vuolle@qt.io> | 2025-04-25 10:08:33 +0300 |
|---|---|---|
| committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2025-04-28 16:57:25 +0000 |
| commit | 259b62444bce40668d7dd7c7515acd4454eea31b (patch) | |
| tree | 5b2022c98632d2453a20aa24a310ba5062d98077 | |
| parent | b6c342d0ae8903f6fbdfd5af20525678b672d061 (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.8
Change-Id: I898ed607b4c6ac540fecacceaac1f630e64d3167
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
(cherry picked from commit f79c2ffe29021993130c043ccf0329e01d5e7749)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| -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) |
