Special Qt types should not be expanded infinite. Variables Viewer

Tue, 21 May 2019 22:44:17 +0200

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Tue, 21 May 2019 22:44:17 +0200
branch
Variables Viewer
changeset 7019
a1b25790bc5c
parent 7018
6512c2183bf7
child 7020
7c7d96c28872
child 7030
73779c4c135a

Special Qt types should not be expanded infinite.

eric6/Debugger/VariablesViewer.py file | annotate | diff | comparison | revisions
--- a/eric6/Debugger/VariablesViewer.py	Mon May 20 22:44:12 2019 +0200
+++ b/eric6/Debugger/VariablesViewer.py	Tue May 21 22:44:17 2019 +0200
@@ -151,6 +151,11 @@
         elif dtype in ('instance', 'class'):
             self.hasChildren = True
         
+        # Special Qt types should not be expanded infinite
+        elif ".{0}".format(dtype) in ConfigKnownQtTypes:
+            self.type = dtype  # It's a Qt type, so skipping translation is ok
+            return
+        
         vtype = ConfigVarTypeDispStrings.get(dtype, dtype)
         # Unkown types should be expandable by default
         if vtype is dtype and dtype not in self.nonExpandableTypes:

eric ide

mercurial