Make QSignalTransition take a pointer-to-const QObject
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Thu, 13 Sep 2012 18:23:10 +0000 (19:23 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 26 Sep 2012 08:08:59 +0000 (10:08 +0200)
commit8b032fe423e854428c1c8324dcd0f8c6150b3503
treef70493194703d129cdfa1f49adac9a5e5ec04c0e
parentf052ee467d257eb289b560c1420c59e6c558ba91
Make QSignalTransition take a pointer-to-const QObject

The obvious idea is that a connect() happens behind the scenes.
As QObject::connect takes a pointer-to-const, QSignalTransition should
do that as well.

TODO: the API becomes asymmetric in that it takes
a "const QObject *" but returns a "QObject *". Reasoning is needed.

Change-Id: I18d0436e7036eee851fd36d5b8ccda4a4757938f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
src/corelib/statemachine/qsignaltransition.cpp
src/corelib/statemachine/qsignaltransition.h
src/corelib/statemachine/qsignaltransition_p.h
src/corelib/statemachine/qstate.cpp
src/corelib/statemachine/qstate.h
src/corelib/statemachine/qstatemachine.cpp