src/eric7/EricWidgets/EricPassivePopup.py

branch
eric7
changeset 10423
299802979277
parent 10417
c6011e501282
child 10439
21c28b0f9e41
--- a/src/eric7/EricWidgets/EricPassivePopup.py	Tue Dec 19 11:04:03 2023 +0100
+++ b/src/eric7/EricWidgets/EricPassivePopup.py	Tue Dec 19 19:57:08 2023 +0100
@@ -76,7 +76,7 @@
         Public method to set the message view.
 
         @param child reference to the widget to set as the message view
-            (QWidget)
+        @type QWidget
         """
         self.__msgView = child
         self.__topLayout = QVBoxLayout(self)
@@ -87,7 +87,8 @@
         """
         Public method to get a reference to the message view.
 
-        @return reference to the message view (QWidget)
+        @return reference to the message view
+        @rtype QWidget
         """
         return self.__msgView
 
@@ -95,7 +96,8 @@
         """
         Public method to show or hide the popup.
 
-        @param visible flag indicating the visibility status (boolean)
+        @param visible flag indicating the visibility status
+        @type bool
         """
         if not visible:
             super().setVisible(visible)
@@ -120,7 +122,8 @@
         """
         Public slot to show the popup.
 
-        @param p position for the popup (QPoint)
+        @param p position for the popup
+        @type QPoint
         """
         if p is not None:
             self.__fixedPosition = p
@@ -134,7 +137,8 @@
         may want to connect the clicked() signal to the hide() slot. Setting
         the delay to -1 makes it use the default value.
 
-        @param delay value for the delay in milliseconds (integer)
+        @param delay value for the delay in milliseconds
+        @type int
         """
         self.__hideDelay = delay
         if self.__hideTimer.isActive():
@@ -150,7 +154,8 @@
         Public method to get the delay before the popup is removed
         automatically.
 
-        @return the delay before the popup is removed automatically (integer)
+        @return the delay before the popup is removed automatically
+        @rtype int
         """
         return self.__hideDelay
 
@@ -158,7 +163,8 @@
         """
         Protected method to handle a mouse release event.
 
-        @param evt reference to the mouse event (QMouseEvent)
+        @param evt reference to the mouse event
+        @type QMouseEvent
         """
         self.clicked.emit()
         self.clicked.emit(evt.position().toPoint())
@@ -167,7 +173,8 @@
         """
         Protected method to handle the hide event.
 
-        @param evt reference to the hide event (QHideEvent)
+        @param evt reference to the hide event
+        @type QHideEvent
         """
         self.__hideTimer.stop()
 
@@ -176,7 +183,8 @@
         Private method to determine the default rectangle to be passed to
         moveNear().
 
-        @return default rectangle (QRect)
+        @return default rectangle
+        @rtype QRect
         """
         return QRect(100, 100, 200, 200)
 
@@ -191,7 +199,8 @@
         Private method to move the popup to be adjacent to the specified
         rectangle.
 
-        @param target rectangle to be placed at (QRect)
+        @param target rectangle to be placed at
+        @type QRect
         """
         pos = self.__calculateNearbyPoint(target)
         self.move(pos.x(), pos.y())
@@ -201,8 +210,10 @@
         Private method to calculate the position to place the popup near the
         specified rectangle.
 
-        @param target rectangle to be placed at (QRect)
-        @return position to place the popup (QPoint)
+        @param target rectangle to be placed at
+        @type QRect
+        @return position to place the popup
+        @rtype QPoint
         """
         pos = target.topLeft()
         x = pos.x()

eric ide

mercurial