--- a/src/eric7/QtHelpInterface/HelpTocWidget.py Wed Dec 20 19:28:22 2023 +0100 +++ b/src/eric7/QtHelpInterface/HelpTocWidget.py Thu Dec 21 12:03:40 2023 +0100 @@ -117,7 +117,8 @@ """ Public slot to expand the table of contents to a specific depth. - @param depth depth to expand to (integer) + @param depth depth to expand to + @type int """ self.__expandDepth = depth if depth == -1: @@ -129,7 +130,8 @@ """ Protected method handling focus in events. - @param evt reference to the focus event object (QFocusEvent) + @param evt reference to the focus event object + @type QFocusEvent """ if evt.reason() != Qt.FocusReason.MouseFocusReason: self.__tocWidget.setFocus() @@ -138,7 +140,8 @@ """ Protected method handling key press events. - @param evt reference to the key press event (QKeyEvent) + @param evt reference to the key press event + @type QKeyEvent """ if evt.key() == Qt.Key.Key_Escape: self.escapePressed.emit() @@ -147,8 +150,10 @@ """ Public method to sync the TOC to the displayed page. - @param url URL of the displayed page (QUrl) - @return flag indicating a successful synchronization (boolean) + @param url URL of the displayed page + @type QUrl + @return flag indicating a successful synchronization + @rtype bool """ idx = self.__tocWidget.indexOf(url) if not idx.isValid(): @@ -160,7 +165,8 @@ """ Private slot showing the context menu. - @param pos position to show the menu at (QPoint) + @param pos position to show the menu at + @type QPoint """ if not self.__tocWidget.indexAt(pos).isValid(): return