diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-04-27 16:07:03 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-04-27 16:07:03 (GMT) |
commit | a460bee2b3051bf6a5176b5c620f81ff962a7f53 (patch) | |
tree | cd16498e44c7ab61b527e4c192969d8101ccb5ad /src/corelib/statemachine/qstate.h | |
parent | 53e8c64d0ed050bc195bb4851da2f6d65b5c8ca5 (diff) | |
download | Qt-a460bee2b3051bf6a5176b5c620f81ff962a7f53.zip Qt-a460bee2b3051bf6a5176b5c620f81ff962a7f53.tar.gz Qt-a460bee2b3051bf6a5176b5c620f81ff962a7f53.tar.bz2 |
replace QStateFinished{Event,Transition} by QState::finished() signal
Not worth it having two public classes when the same can be achieved
by having a signal.
Diffstat (limited to 'src/corelib/statemachine/qstate.h')
-rw-r--r-- | src/corelib/statemachine/qstate.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/statemachine/qstate.h b/src/corelib/statemachine/qstate.h index 7c64c80..70211c1 100644 --- a/src/corelib/statemachine/qstate.h +++ b/src/corelib/statemachine/qstate.h @@ -57,7 +57,6 @@ QT_MODULE(Core) class QAbstractTransition; class QHistoryState; class QSignalTransition; -class QStateFinishedTransition; class QStatePrivate; class Q_CORE_EXPORT QState : public QAbstractState @@ -84,7 +83,6 @@ public: QAbstractTransition *addTransition(QAbstractTransition *transition); QSignalTransition *addTransition(QObject *sender, const char *signal, QAbstractState *target); QAbstractTransition *addTransition(QAbstractState *target); - QStateFinishedTransition *addFinishedTransition(QAbstractState *target); void removeTransition(QAbstractTransition *transition); QList<QAbstractTransition*> transitions() const; @@ -93,6 +91,9 @@ public: QAbstractState *initialState() const; void setInitialState(QAbstractState *state); +Q_SIGNALS: + void finished(); + protected: void onEntry(); void onExit(); |