diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-10 19:46:30 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-10 19:48:00 (GMT) |
commit | 80c11987819a2451ebecefc5b2bf1b42ad4499ae (patch) | |
tree | 21d4d89945b371aa7f24bc4ed4bd3c67118f68e7 /src/corelib/kernel/qobject.cpp | |
parent | b8e791a687d2bb3f7dbc605f76c2d3dd15952240 (diff) | |
download | Qt-80c11987819a2451ebecefc5b2bf1b42ad4499ae.zip Qt-80c11987819a2451ebecefc5b2bf1b42ad4499ae.tar.gz Qt-80c11987819a2451ebecefc5b2bf1b42ad4499ae.tar.bz2 |
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
Diffstat (limited to 'src/corelib/kernel/qobject.cpp')
-rw-r--r-- | src/corelib/kernel/qobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |