eric6/WebBrowser/FeaturePermissions/FeaturePermissionBar.py

changeset 7533
88261c96484b
parent 7360
9190402e4505
child 7781
607a6098cb44
diff -r 1358e9d67a1c -r 88261c96484b eric6/WebBrowser/FeaturePermissions/FeaturePermissionBar.py
--- a/eric6/WebBrowser/FeaturePermissions/FeaturePermissionBar.py	Sun Apr 12 18:46:08 2020 +0200
+++ b/eric6/WebBrowser/FeaturePermissions/FeaturePermissionBar.py	Sun Apr 12 19:07:49 2020 +0200
@@ -75,25 +75,25 @@
             pass
         
         self.__permissionFeatureIconNames = {
-            QWebEnginePage.Geolocation: "geolocation.png",
-            QWebEnginePage.MediaAudioCapture: "audiocapture.png",
-            QWebEnginePage.MediaVideoCapture: "camera.png",
-            QWebEnginePage.MediaAudioVideoCapture: "audio-video.png",
-            QWebEnginePage.MouseLock: "mouse.png",
+            QWebEnginePage.Geolocation: "geolocation",
+            QWebEnginePage.MediaAudioCapture: "audiocapture",
+            QWebEnginePage.MediaVideoCapture: "camera",
+            QWebEnginePage.MediaAudioVideoCapture: "audio-video",
+            QWebEnginePage.MouseLock: "mouse",
         }
         try:
             # these are defined as of Qt 5.10.0/PyQt 5.10.0
             self.__permissionFeatureIconNames.update({
-                QWebEnginePage.DesktopVideoCapture: "desktopVideoCapture.png",
+                QWebEnginePage.DesktopVideoCapture: "desktopVideoCapture",
                 QWebEnginePage.DesktopAudioVideoCapture:
-                    "desktopAudioVideoCapture.png",
+                    "desktopAudioVideoCapture",
             })
         except AttributeError:
             pass
         try:
             # this was re-added in Qt 5.13.0
             self.__permissionFeatureIconNames[
-                QWebEnginePage.Notifications] = "notification.png"
+                QWebEnginePage.Notifications] = "notification"
         except AttributeError:
             pass
         
@@ -110,7 +110,7 @@
         self.__rememberButton.setCheckable(True)
         self.__allowButton = QPushButton(self.tr("Allow"), self)
         self.__denyButton = QPushButton(self.tr("Deny"), self)
-        self.__discardButton = QPushButton(UI.PixmapCache.getIcon("close.png"),
+        self.__discardButton = QPushButton(UI.PixmapCache.getIcon("close"),
                                            "", self)
         self.__allowButton.clicked.connect(self.__permissionGranted)
         self.__denyButton.clicked.connect(self.__permissionDenied)

eric ide

mercurial