From 6a50dbd2aae7495449a18ebd2660261c466505a3 Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 2 May 2016 13:03:09 +0200 Subject: Debugger: Disable QAbstractItemModel dumper The inferior calls to rowCount() and columnCount() used to create the "n x m" "nice" display are troublesome when debugging an actual issue with item models and not too helpful otherwise. People needing that information can still evaluate m->rowCount() etc manually. Change-Id: I3a3feed6aab19096ab01bc91c488de5fcbd732d7 Reviewed-by: Christian Stenger --- share/qtcreator/debugger/qttypes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share/qtcreator/debugger') diff --git a/share/qtcreator/debugger/qttypes.py b/share/qtcreator/debugger/qttypes.py index 6769bfa0ec..856af28f3d 100644 --- a/share/qtcreator/debugger/qttypes.py +++ b/share/qtcreator/debugger/qttypes.py @@ -103,10 +103,10 @@ def qdump__QChar(d, value): d.putNumChild(0) -def qform__QAbstractItemModel(): +def qform_X_QAbstractItemModel(): return [SimpleFormat, EnhancedFormat] -def qdump__QAbstractItemModel(d, value): +def qdump_X_QAbstractItemModel(d, value): displayFormat = d.currentItemFormat() if displayFormat == SimpleFormat: d.putPlainChildren(value) -- cgit v1.2.1