Commit 4265d47c authored by hjk's avatar hjk
Browse files

debugger: fix display of QObject object names for Qt 5



Change-Id: I58ad709575f4846812de3e2109112be170e8e433
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 2cc4ec03
......@@ -721,7 +721,10 @@ def qdump__QObject(d, value):
staticMetaObject = value["staticMetaObject"]
d_ptr = value["d_ptr"]["d"].cast(privateType.pointer()).dereference()
#warn("D_PTR: %s " % d_ptr)
objectName = d_ptr["objectName"]
try:
objectName = d_ptr["objectName"]
except: # Qt 5
objectName = d_ptr["extraData"].dereference()["objectName"]
except:
d.putPlainChildren(value)
return
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment