eric6/WebBrowser/FeaturePermissions/FeaturePermissionBar.py

changeset 7268
a28338eaf694
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7267:aedc309827c7 7268:a28338eaf694
66 }) 66 })
67 except AttributeError: 67 except AttributeError:
68 pass 68 pass
69 try: 69 try:
70 # this was re-added in Qt 5.13.0 70 # this was re-added in Qt 5.13.0
71 self.__permissionFeatureTexts[QWebEnginePage.Notifications] = \ 71 self.__permissionFeatureTexts[
72 self.tr("{0} wants to use desktop notifications.") 72 QWebEnginePage.Notifications] = self.tr(
73 "{0} wants to use desktop notifications.")
73 except AttributeError: 74 except AttributeError:
74 pass 75 pass
75 76
76 self.__permissionFeatureIconNames = { 77 self.__permissionFeatureIconNames = {
77 QWebEnginePage.Geolocation: "geolocation.png", 78 QWebEnginePage.Geolocation: "geolocation.png",
89 }) 90 })
90 except AttributeError: 91 except AttributeError:
91 pass 92 pass
92 try: 93 try:
93 # this was re-added in Qt 5.13.0 94 # this was re-added in Qt 5.13.0
94 self.__permissionFeatureIconNames[QWebEnginePage.Notifications] = \ 95 self.__permissionFeatureIconNames[
95 "notification.png" 96 QWebEnginePage.Notifications] = "notification.png"
96 except AttributeError: 97 except AttributeError:
97 pass 98 pass
98 99
99 self.setAutoFillBackground(True) 100 self.setAutoFillBackground(True)
100 self.__layout = QHBoxLayout() 101 self.__layout = QHBoxLayout()

eric ide

mercurial