Qt 4.8
Public Functions | Static Public Functions | Public Variables | List of all members
QAbstractTransitionPrivate Class Reference

#include <qabstracttransition_p.h>

Inheritance diagram for QAbstractTransitionPrivate:
QObjectPrivate QObjectData QBasicKeyEventTransitionPrivate QBasicMouseEventTransitionPrivate QEventTransitionPrivate QSignalTransitionPrivate QKeyEventTransitionPrivate QMouseEventTransitionPrivate

Public Functions

bool callEventTest (QEvent *e)
 
virtual void callOnTransition (QEvent *e)
 
void emitTriggered ()
 
QStateMachinemachine () const
 
 QAbstractTransitionPrivate ()
 
QStatesourceState () const
 
- Public Functions inherited from QObjectPrivate
void _q_reregisterTimers (void *pointer)
 
void addConnection (int signal, Connection *c)
 
void cleanConnectionLists ()
 
void connectNotify (const char *signal)
 
void deleteChildren ()
 
void disconnectNotify (const char *signal)
 
bool isSender (const QObject *receiver, const char *signal) const
 
bool isSignalConnected (uint signalIdx) const
 Returns true if the signal with index signal_index from object sender is connected. More...
 
void moveToThread_helper ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void setParent_helper (QObject *)
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData)
 
int signalIndex (const char *signalName) const
 Returns the signal index used in the internal connectionLists vector. More...
 
virtual ~QObjectPrivate ()
 
- Public Functions inherited from QObjectData
virtual ~QObjectData ()=0
 

Static Public Functions

static QAbstractTransitionPrivateget (QAbstractTransition *q)
 
- Static Public Functions inherited from QObjectPrivate
static void clearGuards (QObject *)
 
static QObjectPrivateget (QObject *o)
 
static void resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender)
 
static SendersetCurrentSender (QObject *receiver, Sender *sender)
 
static void signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result)
 

Public Variables

QList< QAbstractAnimation * > animations
 
QList< QWeakPointer< QAbstractState > > targetStates
 
- Public Variables inherited from QObjectPrivate
union {
   QObject *   currentChildBeingDeleted
 
   QAbstractDeclarativeData *   declarativeData
 
}; 
 
quint32 connectedSignals [2]
 
QObjectConnectionListVectorconnectionLists
 
SendercurrentSender
 
QList< QPointer< QObject > > eventFilters
 
ExtraDataextraData
 
QString objectName
 
Connectionsenders
 
QAtomicPointer< QtSharedPointer::ExternalRefCountData > sharedRefcount
 
QThreadDatathreadData
 
void * unused
 
- Public Variables inherited from QObjectData
uint blockSig: 1
 
QObjectList children
 
uint hasGuards: 1
 
uint inEventHandler: 1
 
uint inThreadChangeEvent: 1
 
uint isWidget: 1
 
QMetaObjectmetaObject
 
uint ownObjectName: 1
 
QObjectparent
 
uint pendTimer: 1
 
int postedEvents
 
QObjectq_ptr
 
uint receiveChildEvents: 1
 
uint sendChildEvents: 1
 
uint unused: 22
 
uint wasDeleted: 1
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 

Detailed Description

Definition at line 68 of file qabstracttransition_p.h.

Constructors and Destructors

◆ QAbstractTransitionPrivate()

QAbstractTransitionPrivate::QAbstractTransitionPrivate ( )

Definition at line 123 of file qabstracttransition.cpp.

124 {
125 }

Functions

◆ callEventTest()

bool QAbstractTransitionPrivate::callEventTest ( QEvent e)

Definition at line 140 of file qabstracttransition.cpp.

Referenced by QKeyEventTransition::eventTest(), and QMouseEventTransition::eventTest().

141 {
143  return q->eventTest(e);
144 }
The QAbstractTransition class is the base class of transitions between QAbstractState objects...
#define Q_Q(Class)
Definition: qglobal.h:2483

◆ callOnTransition()

void QAbstractTransitionPrivate::callOnTransition ( QEvent e)
virtual

Reimplemented in QSignalTransitionPrivate.

Definition at line 146 of file qabstracttransition.cpp.

Referenced by QStateMachinePrivate::executeTransitionContent().

147 {
149  q->onTransition(e);
150 }
The QAbstractTransition class is the base class of transitions between QAbstractState objects...
#define Q_Q(Class)
Definition: qglobal.h:2483

◆ emitTriggered()

void QAbstractTransitionPrivate::emitTriggered ( )

Definition at line 157 of file qabstracttransition.cpp.

Referenced by QStateMachinePrivate::executeTransitionContent().

158 {
160  emit q->triggered();
161 }
The QAbstractTransition class is the base class of transitions between QAbstractState objects...
#define Q_Q(Class)
Definition: qglobal.h:2483
#define emit
Definition: qobjectdefs.h:76

◆ get()

QAbstractTransitionPrivate * QAbstractTransitionPrivate::get ( QAbstractTransition q)
static

◆ machine()

QStateMachine * QAbstractTransitionPrivate::machine ( ) const

Definition at line 132 of file qabstracttransition.cpp.

Referenced by QEventTransitionPrivate::maybeRegister(), QSignalTransitionPrivate::maybeRegister(), QSignalTransitionPrivate::unregister(), and QEventTransitionPrivate::unregister().

133 {
134  QState *source = sourceState();
135  if (!source)
136  return 0;
137  return source->machine();
138 }
QStateMachine * machine() const
Returns the state machine that this state is part of, or 0 if the state is not part of a state machin...
The QState class provides a general-purpose state for QStateMachine.
Definition: qstate.h:61

◆ sourceState()

QState * QAbstractTransitionPrivate::sourceState ( ) const

Definition at line 152 of file qabstracttransition.cpp.

Referenced by machine(), QSignalTransitionPrivate::maybeRegister(), and QEventTransitionPrivate::maybeRegister().

153 {
154  return qobject_cast<QState*>(parent);
155 }
T qobject_cast(QObject *object)
Definition: qobject.h:375
The QState class provides a general-purpose state for QStateMachine.
Definition: qstate.h:61
QObject * parent
Definition: qobject.h:92

Properties

◆ animations

QList<QAbstractAnimation*> QAbstractTransitionPrivate::animations

Definition at line 86 of file qabstracttransition_p.h.

◆ targetStates

QList<QWeakPointer<QAbstractState> > QAbstractTransitionPrivate::targetStates

Definition at line 83 of file qabstracttransition_p.h.

Referenced by QState::addTransition().


The documentation for this class was generated from the following files: