eric6/Debugger/CallTraceViewer.py

branch
maintenance
changeset 8176
31965986ecd1
parent 8043
0acf98cd089a
parent 8143
2c730d5fd177
child 8273
698ae46f40a4
--- a/eric6/Debugger/CallTraceViewer.py	Sat Mar 06 10:00:52 2021 +0100
+++ b/eric6/Debugger/CallTraceViewer.py	Sun Mar 28 15:00:11 2021 +0200
@@ -184,7 +184,7 @@
                         f.write("{0}\n\n".format(len(title) * "="))
                         itm = self.callTrace.topLevelItem(0)
                         while itm is not None:
-                            isCall = itm.data(0, Qt.UserRole)
+                            isCall = itm.data(0, Qt.ItemDataRole.UserRole)
                             if isCall:
                                 call = "->"
                             else:
@@ -287,7 +287,7 @@
                  self.__entryFormat.format(fromFile, fromLine, fromFunction),
                  self.__entryFormat.format(toFile, toLine, toFunction)])
             itm.setIcon(0, icon)
-            itm.setData(0, Qt.UserRole, isCall)
+            itm.setData(0, Qt.ItemDataRole.UserRole, isCall)
             itm.setExpanded(True)
             
             if isCall:

eric ide

mercurial