--- a/src/eric7/SqlBrowser/SqlBrowserWidget.py Wed Dec 20 19:28:22 2023 +0100 +++ b/src/eric7/SqlBrowser/SqlBrowserWidget.py Thu Dec 21 12:03:40 2023 +0100 @@ -38,7 +38,8 @@ """ Constructor - @param parent reference to the parent widget (QWidget) + @param parent reference to the parent widget + @type QWidget """ super().__init__(parent) self.setupUi(self) @@ -98,7 +99,8 @@ """ Private slot to show the contents of a table. - @param table name of the table for which to show the contents (string) + @param table name of the table for which to show the contents + @type str """ self.showTable(table) @@ -107,7 +109,8 @@ """ Private slot to show the schema of a table. - @param table name of the table for which to show the schema (string) + @param table name of the table for which to show the schema + @type str """ self.showSchema(table) @@ -126,13 +129,20 @@ """ Public method to add a database connection. - @param driver name of the Qt database driver (string) - @param dbName name of the database (string) - @param user user name (string) - @param password password (string) - @param host host name (string) - @param port port number (integer) - @return SQL error object (QSqlError) + @param driver name of the Qt database driver + @type str + @param dbName name of the database + @type str + @param user user name + @type str + @param password password + @type str + @param host host name + @type str + @param port port number + @type int + @return SQL error object + @rtype QSqlError """ err = QSqlError() @@ -174,7 +184,8 @@ """ Public slot to show the contents of a table. - @param table name of the table to be shown (string) + @param table name of the table to be shown + @type str """ model = QSqlTableModel(self.table, self.connections.currentDatabase()) model.setEditStrategy(QSqlTableModel.EditStrategy.OnRowChange) @@ -198,7 +209,8 @@ """ Public slot to show the schema of a table. - @param table name of the table to be shown (string) + @param table name of the table to be shown + @type str """ rec = self.connections.currentDatabase().record(table) model = QStandardItemModel(self.table)