src/eric7/Debugger/WatchPointViewer.py

branch
eric7
changeset 10417
c6011e501282
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
--- a/src/eric7/Debugger/WatchPointViewer.py	Sat Dec 16 17:52:02 2023 +0100
+++ b/src/eric7/Debugger/WatchPointViewer.py	Sun Dec 17 17:15:19 2023 +0100
@@ -27,7 +27,8 @@
         """
         Constructor
 
-        @param parent the parent (QWidget)
+        @param parent reference to the parent widget
+        @type QWidget
         """
         super().__init__(parent)
         self.setObjectName("WatchExpressionViewer")
@@ -52,7 +53,8 @@
         """
         Public slot to set the watch expression model.
 
-        @param model reference to the watch expression model (WatchPointModel)
+        @param model reference to the watch expression model
+        @type WatchPointModel
         """
         self.__model = model
 
@@ -97,8 +99,10 @@
         """
         Private slot to convert an index to a source index.
 
-        @param index index to be converted (QModelIndex)
-        @return mapped index (QModelIndex)
+        @param index index to be converted
+        @type QModelIndex
+        @return mapped index
+        @rtype QModelIndex
         """
         return self.sortingModel.mapToSource(index)
 
@@ -106,8 +110,10 @@
         """
         Private slot to convert a source index to an index.
 
-        @param sindex source index to be converted (QModelIndex)
-        @return mapped index (QModelIndex)
+        @param sindex source index to be converted
+        @type QModelIndex
+        @return mapped index
+        @rtype QModelIndex
         """
         return self.sortingModel.mapFromSource(sindex)
 
@@ -115,8 +121,10 @@
         """
         Private slot to select a complete row.
 
-        @param index index determining the row to be selected (QModelIndex)
-        @param selected flag indicating the action (bool)
+        @param index index determining the row to be selected
+        @type QModelIndex
+        @param selected flag indicating the action
+        @type bool
         """
         if not index.isValid():
             return
@@ -193,7 +201,8 @@
         """
         Private slot to show the context menu.
 
-        @param coord the position of the mouse pointer (QPoint)
+        @param coord the position of the mouse pointer
+        @type QPoint
         """
         cnt = self.__getSelectedItemsCount()
         if cnt <= 1:
@@ -220,13 +229,17 @@
         """
         Private method to check, if an entry already exists.
 
-        @param cond condition to check (string)
-        @param special special condition to check (string)
+        @param cond condition to check
+        @type str
+        @param special special condition to check
+        @type str
         @param showMessage flag indicating a message should be shown,
-            if a duplicate entry is found (boolean)
+            if a duplicate entry is found
+        @type bool
         @param index index that should not be considered duplicate
-            (QModelIndex)
-        @return flag indicating a duplicate entry (boolean)
+        @type QModelIndex
+        @return flag indicating a duplicate entry
+        @rtype bool
         """
         if index is None:
             index = QModelIndex()
@@ -266,7 +279,8 @@
         """
         Private slot to handle the double clicked signal.
 
-        @param index index of the entry that was double clicked (QModelIndex)
+        @param index index of the entry that was double clicked
+        @type QModelIndex
         """
         if index.isValid():
             self.__doEditWatchPoint(index)
@@ -283,7 +297,8 @@
         """
         Private slot to edit a watch expression.
 
-        @param index index of watch expression to be edited (QModelIndex)
+        @param index index of watch expression to be edited
+        @type QModelIndex
         """
         from .EditWatchpointDialog import EditWatchpointDialog
 
@@ -310,8 +325,9 @@
         Private method to set the enabled status of a watch expression.
 
         @param index index of watch expression to be enabled/disabled
-            (QModelIndex)
-        @param enabled flag indicating the enabled status to be set (boolean)
+        @type QModelIndex
+        @param enabled flag indicating the enabled status to be set
+        @type bool
         """
         sindex = self.__toSourceIndex(index)
         if sindex.isValid():
@@ -426,7 +442,8 @@
         """
         Private method to get the count of items selected.
 
-        @return count of items selected (integer)
+        @return count of items selected
+        @rtype int
         """
         count = len(self.selectedIndexes()) // (self.__model.columnCount() - 1)
         # column count is 1 greater than selectable

eric ide

mercurial