Helpviewer/AdBlock/AdBlockIcon.py

branch
6_1_x
changeset 4877
2ef641412a63
parent 4872
8f88c4bd5281
child 5389
9b1c800daff3
equal deleted inserted replaced
4874:8dbca5b1f89c 4877:2ef641412a63
120 Public method to get a reference to the menu action. 120 Public method to get a reference to the menu action.
121 121
122 @return reference to the menu action (QAction) 122 @return reference to the menu action (QAction)
123 """ 123 """
124 if not self.__menuAction: 124 if not self.__menuAction:
125 self.__menuAction = QAction(self.tr("AdBlock")) 125 self.__menuAction = QAction(self.tr("AdBlock"), self)
126 self.__menuAction.setMenu(QMenu()) 126 self.__menuAction.setMenu(QMenu())
127 self.__menuAction.menu().aboutToShow.connect(self.__createMenu) 127 self.__menuAction.menu().aboutToShow.connect(self.__createMenu)
128 128
129 if self.__enabled: 129 if self.__enabled:
130 self.__menuAction.setIcon( 130 self.__menuAction.setIcon(

eric ide

mercurial