WebBrowser/AdBlock/AdBlockIcon.py

branch
QtWebEngine
changeset 4880
561f2bd9cfb9
parent 4858
19dff9c9cf26
child 4895
3baaf8303a7f
equal deleted inserted replaced
4875:4ee26909ac0d 4880:561f2bd9cfb9
103 Public method to get a reference to the menu action. 103 Public method to get a reference to the menu action.
104 104
105 @return reference to the menu action (QAction) 105 @return reference to the menu action (QAction)
106 """ 106 """
107 if not self.__menuAction: 107 if not self.__menuAction:
108 self.__menuAction = QAction(self.tr("AdBlock")) 108 self.__menuAction = QAction(self.tr("AdBlock"), self)
109 self.__menuAction.setMenu(QMenu()) 109 self.__menuAction.setMenu(QMenu())
110 self.__menuAction.menu().aboutToShow.connect(self.__createMenu) 110 self.__menuAction.menu().aboutToShow.connect(self.__createMenu)
111 111
112 if self.__enabled: 112 if self.__enabled:
113 self.__menuAction.setIcon( 113 self.__menuAction.setIcon(

eric ide

mercurial