src/eric7/Tools/UIPreviewer.py

branch
eric7
changeset 10431
64157aeb0312
parent 9695
ad962e9b904d
child 10439
21c28b0f9e41
--- a/src/eric7/Tools/UIPreviewer.py	Wed Dec 20 19:28:22 2023 +0100
+++ b/src/eric7/Tools/UIPreviewer.py	Thu Dec 21 12:03:40 2023 +0100
@@ -49,8 +49,11 @@
         Constructor
 
         @param filename name of a UI file to load
-        @param parent parent widget of this window (QWidget)
-        @param name name of this window (string)
+        @type str
+        @param parent parent widget of this window
+        @type QWidget
+        @param name name of this window
+        @type str
         """
         self.mainWidget = None
         self.currentFile = QDir.currentPath()
@@ -386,7 +389,8 @@
         """
         Private slot to change the style of the show UI.
 
-        @param sstyle name of the selected style (string)
+        @param sstyle name of the selected style
+        @type str
         """
         with EricOverrideCursor():
             qstyle = QStyleFactory.create(sstyle)
@@ -440,9 +444,12 @@
         """
         Public method called to filter an event.
 
-        @param obj object, that generated the event (QObject)
-        @param ev the event, that was generated by object (QEvent)
+        @param obj object, that generated the event
+        @type QObject
+        @param ev the event, that was generated by object
+        @type QEvent
         @return flag indicating if event was filtered out
+        @rtype bool
         """
         if obj == self.mainWidget:
             if ev.type() == QEvent.Type.Close:
@@ -593,7 +600,8 @@
         """
         Private slot to the actual printing.
 
-        @param printer reference to the printer object (QPrinter)
+        @param printer reference to the printer object
+        @type QPrinter
         """
         p = QPainter(printer)
         marginX = (

eric ide

mercurial