diff options
author | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2021-07-29 12:10:34 +0300 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-07-30 12:26:56 +0000 |
commit | f7aa8e5b62772bb752cb7766ea45a56c859ad041 (patch) | |
tree | 675ebe665a4a620dae911e49d54da41c3c0f2de2 /src/corelib/kernel/qcoreapplication.h | |
parent | e92451c7e3171c9364e6f86357ae4e3d42898169 (diff) |
Remove app permission API from QCoreApplication
From the API review session, a potential deadlock behavior might
occur when using QFuture's synchronous APIs on the UI thread. Also
the fact that this api currently have an implementation only for
Android. For those reasons we thought this API could be postponed
until Qt 6.3, when the QFuture concern is addressed and other
platforms other than Android are implemented as well.
Change-Id: I1aef025488c24791da85d15fb57367d3e5e681be
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
(cherry picked from commit 72e5b36e2e4c79dc7995f0203968503266b4f2f5)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/corelib/kernel/qcoreapplication.h')
-rw-r--r-- | src/corelib/kernel/qcoreapplication.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/corelib/kernel/qcoreapplication.h b/src/corelib/kernel/qcoreapplication.h index 873c0acf1f..a72b0b6439 100644 --- a/src/corelib/kernel/qcoreapplication.h +++ b/src/corelib/kernel/qcoreapplication.h @@ -167,17 +167,6 @@ public: QT_DECLARE_NATIVE_INTERFACE_ACCESSOR(QCoreApplication) #ifndef QT_NO_QOBJECT -#if QT_CONFIG(future) - static QFuture<QApplicationPermission::PermissionResult> - requestPermission(QApplicationPermission::PermissionType permission); - static QFuture<QApplicationPermission::PermissionResult> - requestPermission(const QString &permission); - - static QFuture<QApplicationPermission::PermissionResult> - checkPermission(QApplicationPermission::PermissionType permission); - static QFuture<QApplicationPermission::PermissionResult> - checkPermission(const QString &permission); -#endif void installNativeEventFilter(QAbstractNativeEventFilter *filterObj); void removeNativeEventFilter(QAbstractNativeEventFilter *filterObj); |