--- a/src/eric7/WebBrowser/History/HistoryModel.py Fri Dec 22 13:57:47 2023 +0100 +++ b/src/eric7/WebBrowser/History/HistoryModel.py Fri Dec 22 17:24:07 2023 +0100 @@ -32,8 +32,9 @@ Constructor @param historyManager reference to the history manager object - (HistoryManager) - @param parent reference to the parent object (QObject) + @type HistoryManager + @param parent reference to the parent object + @type QObject """ super().__init__(parent) @@ -64,7 +65,8 @@ """ Public slot to handle the update of a history entry. - @param row row number of the updated entry (integer) + @param row row number of the updated entry + @type int """ idx = self.index(row, 0) self.dataChanged.emit(idx, idx) @@ -73,10 +75,14 @@ """ Public method to get the header data. - @param section section number (integer) - @param orientation header orientation (Qt.Orientation) - @param role data role (Qt.ItemDataRole) + @param section section number + @type int + @param orientation header orientation + @type Qt.Orientation + @param role data role + @type Qt.ItemDataRole @return header data + @rtype Any """ if ( orientation == Qt.Orientation.Horizontal @@ -90,9 +96,12 @@ """ Public method to get data from the model. - @param index index of history entry to get data for (QModelIndex) - @param role data role (integer) + @param index index of history entry to get data for + @type QModelIndex + @param role data role + @type int @return history entry data + @rtype Any """ lst = self.__historyManager.history() if index.row() < 0 or index.row() > len(lst): @@ -127,8 +136,10 @@ """ Public method to get the number of columns. - @param parent index of parent (QModelIndex) - @return number of columns (integer) + @param parent index of parent + @type QModelIndex + @return number of columns + @rtype int """ if parent is None: parent = QModelIndex() @@ -142,8 +153,10 @@ """ Public method to determine the number of rows. - @param parent index of parent (QModelIndex) - @return number of rows (integer) + @param parent index of parent + @type QModelIndex + @return number of rows + @rtype int """ if parent is None: parent = QModelIndex() @@ -157,10 +170,14 @@ """ Public method to remove history entries from the model. - @param row row of the first history entry to remove (integer) - @param count number of history entries to remove (integer) - @param parent index of the parent entry (QModelIndex) - @return flag indicating successful removal (boolean) + @param row row of the first history entry to remove + @type int + @param count number of history entries to remove + @type int + @param parent index of the parent entry + @type QModelIndex + @return flag indicating successful removal + @rtype bool """ if parent is None: parent = QModelIndex()