summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMichael Brüning <michael.bruning@qt.io>2023-07-27 13:19:00 +0200
committerMichael Brüning <michael.bruning@qt.io>2023-08-14 16:55:54 +0200
commit0484b100fbee19cddef7d632f8be651166fdb3f1 (patch)
tree32f491bd3f3faeeee4a48b92b2af1eae851df978 /examples
parent692bf646a8756bc60026beab9b6ab39a1e2fe4aa (diff)
Add NSCameraUsageDescription and NSMicrophoneUsageDescription to plists
Quick Nano Browser and Simple Browser need this to be able to use the camera and microphone on macOS. Also document the need for signing the applications in the examples documentation. Task-number: QTBUG-114939 Change-Id: I7a260a7ec62138fec8f7b4d6c1f2009eee9004d6 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Anu Aliyas <anu.aliyas@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit a63e5b1f0e4b65c5ce59e705129ab368677a94a8) Reviewed-by: Michael Brüning <michael.bruning@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/webenginequick/quicknanobrowser/Info.cmake.macos.plist6
-rw-r--r--examples/webenginequick/quicknanobrowser/doc/src/quicknanobrowser.qdoc7
-rw-r--r--examples/webenginewidgets/simplebrowser/Info.cmake.macos.plist4
-rw-r--r--examples/webenginewidgets/simplebrowser/doc/src/simplebrowser.qdoc7
4 files changed, 23 insertions, 1 deletions
diff --git a/examples/webenginequick/quicknanobrowser/Info.cmake.macos.plist b/examples/webenginequick/quicknanobrowser/Info.cmake.macos.plist
index 8aa89c9ea..cac4fa1f4 100644
--- a/examples/webenginequick/quicknanobrowser/Info.cmake.macos.plist
+++ b/examples/webenginequick/quicknanobrowser/Info.cmake.macos.plist
@@ -27,6 +27,10 @@
<key>NSSupportsAutomaticGraphicsSwitching</key>
<true/>
<key>NSLocationUsageDescription</key>
- <string>Quick Nanobrowser would like to give web sites access to your location for demo purposes.</string>
+ <string>Quick Nano Browser would like to give web sites access to your location for demo purposes.</string>
+ <key>NSMicrophoneUsageDescription</key>
+ <string>Quick Nano Browser would like to give web sites access to your computer's microphone for demo purposes.</string>
+ <key>NSCameraUsageDescription</key>
+ <string>Quick Nano Browser would like to give web sites access to your computer's camera for demo purposes.</string>
</dict>
</plist>
diff --git a/examples/webenginequick/quicknanobrowser/doc/src/quicknanobrowser.qdoc b/examples/webenginequick/quicknanobrowser/doc/src/quicknanobrowser.qdoc
index 027a1f29a..545002f30 100644
--- a/examples/webenginequick/quicknanobrowser/doc/src/quicknanobrowser.qdoc
+++ b/examples/webenginequick/quicknanobrowser/doc/src/quicknanobrowser.qdoc
@@ -144,6 +144,13 @@
\skipto Escape
\printuntil /^\ {4}\}/
+ \section1 Signing Requirement for macOS
+
+ To allow web sites access to the location, camera, and microphone when running
+ \e {Quick Nano Browser} on macOS, the application needs to be signed. This is
+ done automatically when building, but you need to set up a valid signing identity
+ for the build environment.
+
\section1 Files and Attributions
The example uses icons from the Tango Icon Library:
diff --git a/examples/webenginewidgets/simplebrowser/Info.cmake.macos.plist b/examples/webenginewidgets/simplebrowser/Info.cmake.macos.plist
index 76f747719..7abb7e01a 100644
--- a/examples/webenginewidgets/simplebrowser/Info.cmake.macos.plist
+++ b/examples/webenginewidgets/simplebrowser/Info.cmake.macos.plist
@@ -28,5 +28,9 @@
<true/>
<key>NSLocationUsageDescription</key>
<string>Simple Browser would like to give web sites access to your location for demo purposes.</string>
+ <key>NSMicrophoneUsageDescription</key>
+ <string>Simple Browser would like to give web sites access to your computer's microphone for demo purposes.</string>
+ <key>NSCameraUsageDescription</key>
+ <string>Simple Browser would like to give web sites access to your computer's camera for demo purposes.</string>
</dict>
</plist>
diff --git a/examples/webenginewidgets/simplebrowser/doc/src/simplebrowser.qdoc b/examples/webenginewidgets/simplebrowser/doc/src/simplebrowser.qdoc
index a9342f3fe..87d326220 100644
--- a/examples/webenginewidgets/simplebrowser/doc/src/simplebrowser.qdoc
+++ b/examples/webenginewidgets/simplebrowser/doc/src/simplebrowser.qdoc
@@ -323,6 +323,13 @@
finished or when an error occurs. See \c downloadmanagerwidget.cpp for an
example of how these signals can be handled.
+ \section1 Signing Requirement for macOS
+
+ To allow web sites access to the location, camera, and microphone when running
+ \e {Simple Browser} on macOS, the application needs to be signed. This is
+ done automatically when building, but you need to set up a valid signing identity
+ for the build environment.
+
\section1 Files and Attributions
The example uses icons from the Tango Icon Library: