WebBrowser/FeaturePermissions/FeaturePermissionBar.py

branch
QtWebEngine
changeset 4904
ea8f13f76d26
parent 4742
f9d1090f6ab9
child 5034
203039d7e945
--- a/WebBrowser/FeaturePermissions/FeaturePermissionBar.py	Mon Mar 28 16:06:39 2016 +0200
+++ b/WebBrowser/FeaturePermissions/FeaturePermissionBar.py	Mon Mar 28 16:34:22 2016 +0200
@@ -45,7 +45,7 @@
         self.__manager = manager
         
         self.__permissionFeatureTexts = {
-            # TODO: Qt 5.6
+            # TODO: Qt 5.7?
 ##            QWebEnginePage.Notifications:
 ##                self.tr("{0} wants to use desktop notifications."),
             QWebEnginePage.Geolocation:
@@ -56,14 +56,17 @@
                 self.tr("{0} wants to use your camera."),
             QWebEnginePage.MediaAudioVideoCapture:
                 self.tr("{0} wants to use your microphone and camera."),
+            QWebEnginePage.MouseLock:
+                self.tr("{0} wants to lock your mouse."),
         }
         self.__permissionFeatureIconNames = {
-            # TODO: Qt 5.6
+            # TODO: Qt 5.7?
 ##            QWebEnginePage.Notifications: "notification.png",
             QWebEnginePage.Geolocation: "geolocation.png",
             QWebEnginePage.MediaAudioCapture: "audiocapture.png",
             QWebEnginePage.MediaVideoCapture: "camera.png",
             QWebEnginePage.MediaAudioVideoCapture: "audio-video.png",
+            QWebEnginePage.MouseLock: "mouse.png",
         }
         
         self.setAutoFillBackground(True)

eric ide

mercurial