Debugger: Disable QObject connection and signal display

Besides the announced change to QObject guts in a5a859e72 there has been
at least 6e0b5dadc and possibly more, so give up here.

Change-Id: I84201cef9f2a7515f082f4c3310bdc96f7a4216d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2019-07-31 12:37:43 +02:00
parent 5d3010a722
commit ae66f63390
3 changed files with 11 additions and 6 deletions

View File

@@ -1994,14 +1994,16 @@ class DumperBase:
with Children(self):
self.putQObjectGutsHelper(0, 0, -1, metaObjectPtr, 'QMetaObject')
with SubItem(self, '[connections]'):
if False:
with SubItem(self, '[connections]'):
if connectionListsPtr:
typeName = '@QObjectConnectionListVector'
self.putItem(self.createValue(connectionListsPtr, typeName))
else:
self.putItemCount(0)
with SubItem(self, '[signals]'):
if False:
with SubItem(self, '[signals]'):
self.putItemCount(signalCount)
if self.isExpanded():
with Children(self):

View File

@@ -1211,7 +1211,8 @@ def qdump__QMetaObject(d, value):
d.putMembersItem(value)
def qdump__QObjectPrivate__ConnectionList(d, value):
if False:
def qdump__QObjectPrivate__ConnectionList(d, value):
d.putNumChild(1)
if d.isExpanded():
i = 0
@@ -1948,7 +1949,8 @@ def qdump__QVector(d, value):
d.putItemCount(size)
d.putPlotData(data, size, value.type[0])
def qdump__QObjectConnectionList(d, value):
if False:
def qdump__QObjectConnectionList(d, value):
dd = d.extractPointer(value)
data, size, alloc = d.vectorDataHelper(dd)
d.check(0 <= size and size <= alloc and alloc <= 1000 * 1000 * 1000)

View File

@@ -2837,8 +2837,9 @@ void tst_Dumpers::dumper_data()
+ Check("ob", "\"An Object\"", "@QWidget")
+ Check("ob1", "\"Another Object\"", "@QObject")
+ Check("ob2", "\"A Subobject\"", "@QObject")
+ Check("ob.[extra].[connections].@1.0.0.receiver", "\"Another Object\"",
"@QObject") % NoCdbEngine % QtVersion(0x50b00);
//+ Check("ob.[extra].[connections].@1.0.0.receiver", "\"Another Object\"",
// "@QObject") % NoCdbEngine % QtVersion(0x50b00)
;
QString senderData =