From b38a1c034df8c807331bf57a0dbcbe05991130f8 Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Wed, 17 Jun 2009 10:37:08 +0200 Subject: prevent subclasses from emitting entered() and exited() The state machine decides when these signals are emitted. --- src/corelib/statemachine/qabstractstate.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/corelib/statemachine/qabstractstate.h b/src/corelib/statemachine/qabstractstate.h index 35ce8f2..5355ac2 100644 --- a/src/corelib/statemachine/qabstractstate.h +++ b/src/corelib/statemachine/qabstractstate.h @@ -66,6 +66,9 @@ public: QStateMachine *machine() const; Q_SIGNALS: +#if !defined(Q_MOC_RUN) && !defined(qdoc) +private: // can only be emitted by QAbstractState +#endif void entered(); void exited(); -- cgit v0.12