Improve ui object tree to show the actual instance class (#2844)

Signed-off-by: Garcia Ruiz <aljanru@amazon.co.uk>

Co-authored-by: Garcia Ruiz <aljanru@amazon.co.uk>
This commit is contained in:
AMZN-AlexOteiza
2021-08-05 11:03:02 +01:00
committed by GitHub
parent 6c7365918b
commit e55c31d959
@@ -220,6 +220,8 @@ class ObjectTreeDialog(QDialog):
return
for child in obj.children():
object_type = type(child).__name__
if child.metaObject().className() != object_type:
object_type = f"{child.metaObject().className()} ({object_type})"
object_name = child.objectName()
text = icon_text = title = window_title = geometry_str = classes = "(N/A)"
if isinstance(child, QtGui.QWindow):