src/eric7/SqlBrowser/SqlConnectionWidget.py

branch
eric7
changeset 10431
64157aeb0312
parent 10069
435cc5875135
child 10439
21c28b0f9e41
diff -r e440aaf179ce -r 64157aeb0312 src/eric7/SqlBrowser/SqlConnectionWidget.py
--- a/src/eric7/SqlBrowser/SqlConnectionWidget.py	Wed Dec 20 19:28:22 2023 +0100
+++ b/src/eric7/SqlBrowser/SqlConnectionWidget.py	Thu Dec 21 12:03:40 2023 +0100
@@ -37,7 +37,8 @@
         """
         Constructor
 
-        @param parent reference to the parent widget (QWidget)
+        @param parent reference to the parent widget
+        @type QWidget
         """
         super().__init__(parent)
 
@@ -113,8 +114,10 @@
         """
         Private slot handling the activation of an item.
 
-        @param itm reference to the item (QTreeWidgetItem)
-        @param column column that was activated (integer)
+        @param itm reference to the item
+        @type QTreeWidgetItem
+        @param column column that was activated
+        @type int
         """
         if itm is None:
             return
@@ -133,9 +136,10 @@
         """
         Private slot handling a change of the current item.
 
-        @param current reference to the new current item (QTreeWidgetItem)
+        @param current reference to the new current item
+        @type QTreeWidgetItem
         @param previous reference to the previous current item
-            (QTreeWidgetItem)
+        @type QTreeWidgetItem
         """
         self.__schemaAction.setEnabled(
             current is not None and current.parent() is not None
@@ -145,8 +149,10 @@
         """
         Private method to assemble a string for the caption.
 
-        @param db reference to the database object (QSqlDatabase)
-        @return caption string (string)
+        @param db reference to the database object
+        @type QSqlDatabase
+        @return caption string
+        @rtype str
         """
         nm = db.driverName()
         nm += ":"
@@ -160,8 +166,10 @@
         """
         Private slot to set the font to bold.
 
-        @param itm reference to the item to be changed (QTreeWidgetItem)
-        @param bold flag indicating bold (boolean)
+        @param itm reference to the item to be changed
+        @type QTreeWidgetItem
+        @param bold flag indicating bold
+        @type bool
         """
         font = itm.font(0)
         font.setBold(bold)
@@ -171,7 +179,8 @@
         """
         Public method to get the current database.
 
-        @return reference to the current database (QSqlDatabase)
+        @return reference to the current database
+        @rtype QSqlDatabase
         """
         return QSqlDatabase.database(self.__activeDb)
 
@@ -180,7 +189,7 @@
         Private slot to set an item to active.
 
         @param itm reference to the item to set as the active item
-            (QTreeWidgetItem)
+        @type QTreeWidgetItem
         """
         for index in range(self.__connectionTree.topLevelItemCount()):
             if self.__connectionTree.topLevelItem(index).font(0).bold():

eric ide

mercurial