diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2023-05-23 17:02:02 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2023-05-25 13:46:30 +0200 |
commit | a1b1a30f8a83c8817c9678dc30d877747eee077b (patch) | |
tree | 69f0c70a088fbe2c9376581ab6a3bdecefbed144 /src/corelib/configure.cmake | |
parent | cbc239b52b6c2518a8099f1d6a3aa55e27eb2ae1 (diff) |
permissions: Remove need to check QT_CONFIG(permissions) in user code
The idea was to avoid having to define return values for platforms
that did not have a permission backend (yet), but the approach does
not work for QML, and was a bit awkward in C++ as well.
We now return Qt::PermissionStatus::Granted on all platforms without
a permission backend, which allows the user code to have a single
code path for checking and requesting permissions. Importantly, that
code path will not be any different now that we always grant the
permission then what it was when the user ifdefed out the permission
check via QT_CONFIG(permissions).
Task-number: QTBUG-90498
Change-Id: I564a24ccfd6b335cb90b7a621778fba61d53a56c
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/configure.cmake')
-rw-r--r-- | src/corelib/configure.cmake | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/corelib/configure.cmake b/src/corelib/configure.cmake index dd89b8ac99..746ac8927e 100644 --- a/src/corelib/configure.cmake +++ b/src/corelib/configure.cmake @@ -1016,7 +1016,6 @@ qt_feature("permissions" PUBLIC SECTION "Utilities" LABEL "Application permissions" PURPOSE "Provides support for requesting user permission to access restricted data or APIs" - CONDITION APPLE OR ANDROID OR WASM ) qt_configure_add_summary_section(NAME "Qt Core") |