eric6/Debugger/VariablesFilterDialog.py

branch
maintenance
changeset 8043
0acf98cd089a
parent 7924
8a96736d465e
parent 7923
91e843545d9a
child 8176
31965986ecd1
--- a/eric6/Debugger/VariablesFilterDialog.py	Sun Jan 17 13:53:08 2021 +0100
+++ b/eric6/Debugger/VariablesFilterDialog.py	Mon Feb 01 10:38:16 2021 +0100
@@ -10,7 +10,7 @@
 from PyQt5.QtCore import Qt
 from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QListWidgetItem
 
-from Debugger.Config import ConfigVarTypeDispStrings, ConfigVarTypeFilters
+from Debugger.Config import ConfigVarTypeDispStrings
 import Preferences
 
 from .Ui_VariablesFilterDialog import Ui_VariablesFilterDialog
@@ -44,7 +44,7 @@
         for widget in self.localsList, self.globalsList:
             for varType, varTypeStr in ConfigVarTypeDispStrings.items():
                 itm = QListWidgetItem(self.tr(varTypeStr), widget)
-                itm.setData(Qt.UserRole, ConfigVarTypeFilters[varType])
+                itm.setData(Qt.UserRole, varType)
                 itm.setFlags(Qt.ItemIsEnabled | Qt.ItemIsUserCheckable)
                 itm.setCheckState(Qt.Unchecked)
                 widget.addItem(itm)
@@ -56,8 +56,10 @@
         """
         Public slot to retrieve the current selections.
         
-        @return A tuple of lists of integer values. The first list is the
-            locals variables filter, the second the globals variables filter.
+        @return tuple of lists containing the variable filters. The first list
+            is the locals variables filter, the second the globals variables
+            filter.
+        @rtype tuple of (list of str, list of str)
         """
         lList = []
         for row in range(self.localsList.count()):
@@ -76,8 +78,10 @@
         """
         Public slot to set the current selection.
         
-        @param lList local variables filter (list of int)
-        @param gList global variables filter (list of int)
+        @param lList local variables filter
+        @type list of str
+        @param gList global variables filter
+        @type list of str
         """
         for row in range(self.localsList.count()):
             itm = self.localsList.item(row)

eric ide

mercurial