Helpviewer/HelpBrowserWV.py

changeset 4353
cff7e27fb7b8
parent 4352
86f7a3344d38
child 4355
40ec6bef4c22
equal deleted inserted replaced
4352:86f7a3344d38 4353:cff7e27fb7b8
2123 @type QWebFrame 2123 @type QWebFrame
2124 @param feature requested feature 2124 @param feature requested feature
2125 @type QWebPage.Feature 2125 @type QWebPage.Feature
2126 """ 2126 """
2127 from .FeaturePermissionBar import FeaturePermissionBar 2127 from .FeaturePermissionBar import FeaturePermissionBar
2128 self.__featurePermissionBar = FeaturePermissionBar(self) 2128 self.__featurePermissionBar = FeaturePermissionBar(self, frame,
2129 feature)
2129 self.__featurePermissionBar.featurePermissionProvided.connect( 2130 self.__featurePermissionBar.featurePermissionProvided.connect(
2130 self.__setFeaturePermission) 2131 self.__setFeaturePermission)
2131 2132 self.__featurePermissionBar.show()
2132 self.__featurePermissionBar.requestPermission(frame, feature)
2133 2133
2134 def __setFeaturePermission(self, frame, feature, policy): 2134 def __setFeaturePermission(self, frame, feature, policy):
2135 """ 2135 """
2136 Private slot to set the feature permissions. 2136 Private slot to set the feature permissions.
2137 2137
2149 """ 2149 """
2150 Private slot to delete the feature permission bar. 2150 Private slot to delete the feature permission bar.
2151 """ 2151 """
2152 if self.__featurePermissionBar is not None: 2152 if self.__featurePermissionBar is not None:
2153 self.__featurePermissionBar.deleteLater() 2153 self.__featurePermissionBar.deleteLater()
2154 self.__featurePermissionBar.hide()
2154 self.__featurePermissionBar = None 2155 self.__featurePermissionBar = None
2155 2156
2156 def __downloadRequested(self, request): 2157 def __downloadRequested(self, request):
2157 """ 2158 """
2158 Private slot to handle a download request. 2159 Private slot to handle a download request.

eric ide

mercurial