Commit 3fd95f81 authored by hjk's avatar hjk Committed by hjk
Browse files

debugger: remove attempt to discover private QObject data

This worked only for real QObjectData derived data classes but failed for
pimpls with the same naming conventions that are not QObjectData derived.

Change-Id: I52765b554addcec550c346b4fc93c836772d0463
Reviewed-on: http://codereview.qt.nokia.com/1401

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 6e590862
......@@ -669,11 +669,8 @@ def extractCString(table, offset):
def qdump__QObject(d, item):
#warn("OBJECT: %s " % item.value)
try:
privateTypeName = str(item.value.type) + "Private"
privateTypeName = d.ns + "QObjectPrivate"
privateType = lookupType(privateTypeName)
if privateType is None:
privateTypeName = d.ns + "QObjectPrivate"
privateType = lookupType(privateTypeName)
staticMetaObject = item.value["staticMetaObject"]
d_ptr = item.value["d_ptr"]["d"].cast(privateType.pointer()).dereference()
#warn("D_PTR: %s " % d_ptr)
......
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