src/eric7/Preferences/ConfigurationPages/EditorHighlightingStylesPage.py

branch
eric7
changeset 10428
a071d4065202
parent 10373
093dcebe5ecb
child 10439
21c28b0f9e41
--- a/src/eric7/Preferences/ConfigurationPages/EditorHighlightingStylesPage.py	Wed Dec 20 11:06:38 2023 +0100
+++ b/src/eric7/Preferences/ConfigurationPages/EditorHighlightingStylesPage.py	Wed Dec 20 14:58:58 2023 +0100
@@ -51,6 +51,7 @@
         Constructor
 
         @param lexers reference to the lexers dictionary
+        @type dict
         """
         super().__init__()
         self.setupUi(self)
@@ -335,9 +336,11 @@
         Private slot to change the highlighter font.
 
         @param doAll flag indicating to change the font for all styles
-            (boolean)
-        @param familyOnly flag indicating to set the font family only (boolean)
-        @param sizeOnly flag indicating to set the font size only (boolean
+        @type bool
+        @param familyOnly flag indicating to set the font family only
+        @type bool
+        @param sizeOnly flag indicating to set the font size only
+        @type bool
         """
 
         def setFont(font, style, substyle, familyOnly, sizeOnly):
@@ -414,7 +417,8 @@
         """
         Private slot used to select the font of the selected style and lexer.
 
-        @param act reference to the triggering action (QAction)
+        @param act reference to the triggering action
+        @type QAction
         """
         if act is None:
             return
@@ -427,7 +431,8 @@
         """
         Private slot used to change the font of all styles of a selected lexer.
 
-        @param act reference to the triggering action (QAction)
+        @param act reference to the triggering action
+        @type QAction
         """
         if act is None:
             return
@@ -442,7 +447,8 @@
         Private method used to set the eolfill for the selected style and
         lexer.
 
-        @param on flag indicating enabled or disabled state (boolean)
+        @param on flag indicating enabled or disabled state
+        @type bool
         """
         style, substyle = self.__currentStyles()
         checkState = Qt.CheckState.Checked if on else Qt.CheckState.Unchecked
@@ -730,7 +736,7 @@
         @return list containing the index of the selected lexer language
             and a tuple containing the index of the parent selected lexer
             entry and the index of the selected entry
-        @rtype list of int and tuple of (int, int)
+        @rtype list of [int, tuple of (int, int)]
         """
         itm = self.styleElementList.currentItem()
         if itm:
@@ -756,6 +762,7 @@
         Public method to set the state of the widget.
 
         @param state state data generated by saveState
+        @type list of [int, tuple of (int, int)]
         """
         if state:
             self.lexerLanguageComboBox.setCurrentIndex(state[0])
@@ -899,7 +906,9 @@
     Module function to create the configuration page.
 
     @param dlg reference to the configuration dialog
-    @return reference to the instantiated page (ConfigurationPageBase)
+    @type ConfigurationDialog
+    @return reference to the instantiated page
+    @rtype ConfigurationPageBase
     """
     page = EditorHighlightingStylesPage(dlg.getLexers())
     return page

eric ide

mercurial