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

#include <qanimationgroup_p.h>

Inheritance diagram for QAnimationGroupPrivate:
QAbstractAnimationPrivate QObjectPrivate QObjectData QParallelAnimationGroupPrivate QSequentialAnimationGroupPrivate

Public Functions

virtual void animationInsertedAt (int)
 
virtual void animationRemoved (int, QAbstractAnimation *)
 
void connectUncontrolledAnimation (QAbstractAnimation *anim)
 
void disconnectUncontrolledAnimation (QAbstractAnimation *anim)
 
 QAnimationGroupPrivate ()
 
- Public Functions inherited from QAbstractAnimationPrivate
 QAbstractAnimationPrivate ()
 
void setState (QAbstractAnimation::State state)
 
virtual ~QAbstractAnimationPrivate ()
 
- 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
 

Public Variables

QList< QAbstractAnimation * > animations
 
- Public Variables inherited from QAbstractAnimationPrivate
int currentLoop
 
int currentTime
 
bool deleteWhenStopped
 
QAbstractAnimation::Direction direction
 
QAnimationGroupgroup
 
bool hasRegisteredTimer
 
bool isGroup
 
bool isPause
 
int loopCount
 
QAbstractAnimation::State state
 
int totalCurrentTime
 
- 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 **)
 
- Static Public Functions inherited from QAbstractAnimationPrivate
static QAbstractAnimationPrivateget (QAbstractAnimation *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)
 

Detailed Description

Definition at line 66 of file qanimationgroup_p.h.

Constructors and Destructors

◆ QAnimationGroupPrivate()

QAnimationGroupPrivate::QAnimationGroupPrivate ( )
inline

Definition at line 70 of file qanimationgroup_p.h.

71  {
72  isGroup = true;
73  }

Functions

◆ animationInsertedAt()

virtual void QAnimationGroupPrivate::animationInsertedAt ( int  )
inlinevirtual

Reimplemented in QSequentialAnimationGroupPrivate.

Definition at line 75 of file qanimationgroup_p.h.

75 { }

◆ animationRemoved()

void QAnimationGroupPrivate::animationRemoved ( int  index,
QAbstractAnimation  
)
virtual

Reimplemented in QSequentialAnimationGroupPrivate, and QParallelAnimationGroupPrivate.

Definition at line 291 of file qanimationgroup.cpp.

Referenced by animationInsertedAt(), QParallelAnimationGroupPrivate::animationRemoved(), and QSequentialAnimationGroupPrivate::animationRemoved().

292 {
294  Q_UNUSED(index);
295  if (animations.isEmpty()) {
296  currentTime = 0;
297  q->stop();
298  }
299 }
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
Definition: qlist.h:152
#define Q_Q(Class)
Definition: qglobal.h:2483
QList< QAbstractAnimation * > animations
quint16 index
The QAnimationGroup class is an abstract base class for groups of animations.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ connectUncontrolledAnimation()

void QAnimationGroupPrivate::connectUncontrolledAnimation ( QAbstractAnimation anim)
inline

Definition at line 84 of file qanimationgroup_p.h.

85  {
86  QObject::connect(anim, SIGNAL(finished()), q_func(), SLOT(_q_uncontrolledAnimationFinished()));
87  }
#define SLOT(a)
Definition: qobjectdefs.h:226
#define SIGNAL(a)
Definition: qobjectdefs.h:227
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
Definition: qobject.cpp:2580

◆ disconnectUncontrolledAnimation()

void QAnimationGroupPrivate::disconnectUncontrolledAnimation ( QAbstractAnimation anim)
inline

Definition at line 78 of file qanimationgroup_p.h.

79  {
80  //0 for the signal here because we might be called from the animation destructor
81  QObject::disconnect(anim, 0, q_func(), SLOT(_q_uncontrolledAnimationFinished()));
82  }
#define SLOT(a)
Definition: qobjectdefs.h:226
static bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *member)
Disconnects signal in object sender from method in object receiver.
Definition: qobject.cpp:2895

Properties

◆ animations

QList<QAbstractAnimation *> QAnimationGroupPrivate::animations

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