From 80c11987819a2451ebecefc5b2bf1b42ad4499ae Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Thu, 10 Sep 2009 21:46:30 +0200 Subject: Fix the signal output in QObject::dumpObjectInfo The computation of the offset was wrong. (The offset is the difference between the method index, and the signal index) Reviewed-by: trustme --- src/corelib/kernel/qobject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/kernel/qobject.cpp b/src/corelib/kernel/qobject.cpp index 32047a0..b4e3959 100644 --- a/src/corelib/kernel/qobject.cpp +++ b/src/corelib/kernel/qobject.cpp @@ -3711,7 +3711,7 @@ void QObject::dumpObjectInfo() offsetToNextMetaObject = signalOffset; computeOffsets(mo, &signalOffset, &methodOffset); } - offset = offset - signalOffset + methodOffset; + offset = methodOffset - signalOffset; } const QMetaMethod signal = metaObject()->method(signal_index + offset); qDebug(" signal: %s", signal.signature()); -- cgit v0.12