--- a/WebBrowser/AdBlock/AdBlockIcon.py Thu Dec 14 19:25:34 2017 +0100 +++ b/WebBrowser/AdBlock/AdBlockIcon.py Mon Dec 18 18:09:39 2017 +0100 @@ -25,7 +25,8 @@ """ Constructor - @param parent reference to the parent widget (HelpWindow) + @param parent reference to the parent widget + @type WebBrowserWindow """ super(AdBlockIcon, self).__init__(parent) @@ -44,7 +45,8 @@ """ Public slot to set the enabled state. - @param enabled enabled state (boolean) + @param enabled enabled state + @type bool """ self.__enabled = enabled if enabled: @@ -57,7 +59,8 @@ """ Private slot to create the context menu. - @param menu parent menu (QMenu) + @param menu parent menu + @type QMenu """ if menu is None: menu = self.sender() @@ -102,7 +105,8 @@ """ Public method to get a reference to the menu action. - @return reference to the menu action (QAction) + @return reference to the menu action + @rtype QAction """ if not self.__menuAction: self.__menuAction = QAction(self.tr("AdBlock"), self) @@ -122,7 +126,8 @@ """ Private slot to show the context menu. - @param pos position the context menu should be shown (QPoint) + @param pos position the context menu should be shown + @type QPoint """ menu = QMenu() self.__createMenu(menu) @@ -141,7 +146,8 @@ Private method to check, if the host of the current browser is excepted. - @return flag indicating an exception (boolean) + @return flag indicating an exception + @rtype bool """ browser = self.__mw.currentBrowser() if browser is None: @@ -181,8 +187,10 @@ """ Public slot to handle URL changes. - @param browser reference to the browser (HelpBrowser) - @param url new URL (QUrl) + @param browser reference to the browser + @type WebBrowserView + @param url new URL + @type QUrl """ if browser == self.__mw.currentBrowser(): self.currentChanged()