Helpviewer/AdBlock/AdBlockIcon.py

changeset 4876
686e69aecdb5
parent 4871
521d2c98f656
child 5389
9b1c800daff3
equal deleted inserted replaced
4873:d93871657c5d 4876:686e69aecdb5
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