diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2012-09-13 19:23:10 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-09-26 10:08:59 +0200 |
commit | 8b032fe423e854428c1c8324dcd0f8c6150b3503 (patch) | |
tree | f70493194703d129cdfa1f49adac9a5e5ec04c0e /src/corelib/statemachine/qstate.cpp | |
parent | f052ee467d257eb289b560c1420c59e6c558ba91 (diff) |
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>
Diffstat (limited to 'src/corelib/statemachine/qstate.cpp')
-rw-r--r-- | src/corelib/statemachine/qstate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/statemachine/qstate.cpp b/src/corelib/statemachine/qstate.cpp index 126fa3adf7..7d4081f2c3 100644 --- a/src/corelib/statemachine/qstate.cpp +++ b/src/corelib/statemachine/qstate.cpp @@ -348,7 +348,7 @@ void QState::addTransition(QAbstractTransition *transition) object, and returns the new QSignalTransition object. The transition has this state as the source, and the given \a target as the target state. */ -QSignalTransition *QState::addTransition(QObject *sender, const char *signal, +QSignalTransition *QState::addTransition(const QObject *sender, const char *signal, QAbstractState *target) { if (!sender) { |