From afd7460affa17b5f8aac9034b1b9c3b13dd115f7 Mon Sep 17 00:00:00 2001 From: Assam Boudjelthia Date: Wed, 3 Mar 2021 00:59:29 +0200 Subject: Add new app permissions API under QCoreApplication MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The API allows users to request and check the status of various permissions. A predefined enum class of the common permission types on different platforms is used to allow requesting permission with a common code. Platform specific permissions are defined only on their relevant platform. For permissions that are not predefined, they can be requested via a string variant of this API. This adds the Android implementation only. [ChangeLog][QtCore] Add new API for handling app permissions with an initial implementation for Android. Task-number: QTBUG-90498 Change-Id: I3bc98c6ab2dceeea3ee8edec20a332ed8f56ad4f Reviewed-by: Sona Kurazyan Reviewed-by: Edward Welbourne Reviewed-by: Qt CI Bot Reviewed-by: Tor Arne Vestbø --- tests/auto/corelib/thread/qfuture/tst_qfuture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/auto/corelib/thread') diff --git a/tests/auto/corelib/thread/qfuture/tst_qfuture.cpp b/tests/auto/corelib/thread/qfuture/tst_qfuture.cpp index 5f6267ec7d..eff07ce309 100644 --- a/tests/auto/corelib/thread/qfuture/tst_qfuture.cpp +++ b/tests/auto/corelib/thread/qfuture/tst_qfuture.cpp @@ -25,6 +25,8 @@ ** $QT_END_LICENSE$ ** ****************************************************************************/ +#define QFUTURE_TEST + #include #include #include @@ -32,8 +34,6 @@ #include #include -#define QFUTURE_TEST - #include #include #include -- cgit v1.2.3