From a655c8b104191aaf6bbf22195d74d30bc1598095 Mon Sep 17 00:00:00 2001 From: Ivan Solovev Date: Fri, 31 Mar 2023 12:23:23 +0200 Subject: [PATCH] Fix QPermission documentation for accessing typed permissions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The documentation suggested to use a non-existing data() function. Fix it to mention the actual QPermission::value() method. Change-Id: I870021ef5a04edc26553d8b0376da007687b2f05 Reviewed-by: Giuseppe D'Angelo Reviewed-by: Tor Arne Vestbø (cherry picked from commit a1ff7f518df7ed08c3b7a08539268b3535b28969) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/kernel/qpermissions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/kernel/qpermissions.cpp b/src/corelib/kernel/qpermissions.cpp index 4667896f4ed..588ad0b132b 100644 --- a/src/corelib/kernel/qpermissions.cpp +++ b/src/corelib/kernel/qpermissions.cpp @@ -198,7 +198,7 @@ Q_LOGGING_CATEGORY(lcPermissions, "qt.permissions", QtWarningMsg); \endcode To inspect the properties of the original, typed permission, - use the data() function: + use the \l {QPermission::}{value()} function: \code QLocationPermission locationPermission;