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.h | |
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.h')
-rw-r--r-- | src/corelib/statemachine/qstate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/statemachine/qstate.h b/src/corelib/statemachine/qstate.h index 13335e80d7..8d20a67350 100644 --- a/src/corelib/statemachine/qstate.h +++ b/src/corelib/statemachine/qstate.h @@ -83,7 +83,7 @@ public: void setErrorState(QAbstractState *state); void addTransition(QAbstractTransition *transition); - QSignalTransition *addTransition(QObject *sender, const char *signal, QAbstractState *target); + QSignalTransition *addTransition(const QObject *sender, const char *signal, QAbstractState *target); QAbstractTransition *addTransition(QAbstractState *target); void removeTransition(QAbstractTransition *transition); QList<QAbstractTransition*> transitions() const; |