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>
monroegm-disable-blank-issue-2
AMZN-AlexOteiza 4 years ago committed by GitHub
parent 6c7365918b
commit e55c31d959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -220,6 +220,8 @@ class ObjectTreeDialog(QDialog):
return return
for child in obj.children(): for child in obj.children():
object_type = type(child).__name__ object_type = type(child).__name__
if child.metaObject().className() != object_type:
object_type = f"{child.metaObject().className()} ({object_type})"
object_name = child.objectName() object_name = child.objectName()
text = icon_text = title = window_title = geometry_str = classes = "(N/A)" text = icon_text = title = window_title = geometry_str = classes = "(N/A)"
if isinstance(child, QtGui.QWindow): if isinstance(child, QtGui.QWindow):

Loading…
Cancel
Save