summaryrefslogtreecommitdiffstats
path: root/src/corelib/statemachine
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-06-03 11:21:43 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-06-03 11:21:43 (GMT)
commita6cb0edd2f8f69ea7b878d65756d47ed166f4224 (patch)
tree82caa7f56fa12ba3bd2dcb9b793adb3fdee3b57d /src/corelib/statemachine
parente72285b0108f7649366a106f1c16ea73611dbcd4 (diff)
downloadQt-a6cb0edd2f8f69ea7b878d65756d47ed166f4224.zip
Qt-a6cb0edd2f8f69ea7b878d65756d47ed166f4224.tar.gz
Qt-a6cb0edd2f8f69ea7b878d65756d47ed166f4224.tar.bz2
fix signal signature bug in debug output
The signal code (first character of const char *signal) is stripped internally, so the debug output code should not skip any characters.
Diffstat (limited to 'src/corelib/statemachine')
-rw-r--r--src/corelib/statemachine/qstatemachine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/statemachine/qstatemachine.cpp b/src/corelib/statemachine/qstatemachine.cpp
index be816a6..d5f6b76 100644
--- a/src/corelib/statemachine/qstatemachine.cpp
+++ b/src/corelib/statemachine/qstatemachine.cpp
@@ -1329,7 +1329,7 @@ void QStateMachinePrivate::registerSignalTransition(QSignalTransition *transitio
if (!ok) {
#ifdef QSTATEMACHINE_DEBUG
qDebug() << q << ": FAILED to add signal transition from" << transition->sourceState()
- << ": ( sender =" << sender << ", signal =" << (signal.mid(1))
+ << ": ( sender =" << sender << ", signal =" << signal
<< ", targets =" << transition->targetStates() << ')';
#endif
return;
@@ -1339,7 +1339,7 @@ void QStateMachinePrivate::registerSignalTransition(QSignalTransition *transitio
QSignalTransitionPrivate::get(transition)->signalIndex = signalIndex;
#ifdef QSTATEMACHINE_DEBUG
qDebug() << q << ": added signal transition from" << transition->sourceState()
- << ": ( sender =" << sender << ", signal =" << (signal.mid(1))
+ << ": ( sender =" << sender << ", signal =" << signal
<< ", targets =" << transition->targetStates() << ')';
#endif
}