diff -r c712d09cc839 -r f6881d10e995 src/eric7/WebBrowser/Passwords/PasswordModel.py --- a/src/eric7/WebBrowser/Passwords/PasswordModel.py Fri Dec 22 13:57:47 2023 +0100 +++ b/src/eric7/WebBrowser/Passwords/PasswordModel.py Fri Dec 22 17:24:07 2023 +0100 @@ -21,8 +21,10 @@ """ Constructor - @param manager reference to the password manager (PasswordManager) - @param parent reference to the parent object (QObject) + @param manager reference to the password manager + @type PasswordManager + @param parent reference to the parent object + @type QObject """ super().__init__(parent) @@ -37,7 +39,8 @@ """ Public methods to show passwords. - @param on flag indicating if passwords shall be shown (boolean) + @param on flag indicating if passwords shall be shown + @type bool """ self.__showPasswords = on self.beginResetModel() @@ -47,7 +50,8 @@ """ Public method to indicate, if passwords shall be shown. - @return flag indicating if passwords shall be shown (boolean) + @return flag indicating if passwords shall be shown + @rtype bool """ return self.__showPasswords @@ -62,10 +66,14 @@ """ Public method to remove entries from the model. - @param row start row (integer) - @param count number of rows to remove (integer) - @param parent parent index (QModelIndex) - @return flag indicating success (boolean) + @param row start row + @type int + @param count number of rows to remove + @type int + @param parent parent index + @type QModelIndex + @return flag indicating success + @rtype bool """ if parent is None: parent = QModelIndex() @@ -90,8 +98,10 @@ """ Public method to get the number of rows of the model. - @param parent parent index (QModelIndex) - @return number of rows (integer) + @param parent parent index + @type QModelIndex + @return number of rows + @rtype int """ if parent is None: parent = QModelIndex() @@ -105,8 +115,10 @@ """ Public method to get the number of columns of the model. - @param parent parent index (QModelIndex) (Unused) - @return number of columns (integer) + @param parent parent index (Unused) + @type QModelIndex + @return number of columns + @rtype int """ if self.__showPasswords: return 3 @@ -117,9 +129,12 @@ """ Public method to get data from the model. - @param index index to get data for (QModelIndex) - @param role role of the data to retrieve (integer) + @param index index to get data for + @type QModelIndex + @param role role of the data to retrieve + @type int @return requested data + @rtype Any """ if index.row() >= self.__manager.sitesCount() or index.row() < 0: return None @@ -142,10 +157,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