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

#include <qdeclarativeanimation_p_p.h>

Inheritance diagram for QDeclarativeAbstractAnimationPrivate:
QObjectPrivate QObjectData QDeclarativeAnchorAnimationPrivate QDeclarativeAnimationGroupPrivate QDeclarativePauseAnimationPrivate QDeclarativePropertyActionPrivate QDeclarativePropertyAnimationPrivate QDeclarativeScriptActionPrivate QDeclarativeParentAnimationPrivate QDeclarativeRotationAnimationPrivate QDeclarativeSmoothedAnimationPrivate QDeclarativeSpringAnimationPrivate

Public Functions

void commence ()
 
 QDeclarativeAbstractAnimationPrivate ()
 
- 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 QDeclarativeProperty createProperty (QObject *obj, const QString &str, QObject *infoObj)
 
- 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

bool alwaysRunToEnd:1
 
bool avoidPropertyValueSourceStart:1
 
bool componentComplete:1
 
bool connectedTimeLine:1
 
QDeclarativeProperty defaultProperty
 
bool disableUserControl:1
 
QDeclarativeAnimationGroupgroup
 
int loopCount
 
bool paused:1
 
bool registered:1
 
bool running:1
 
- 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 205 of file qdeclarativeanimation_p_p.h.

Constructors and Destructors

◆ QDeclarativeAbstractAnimationPrivate()

QDeclarativeAbstractAnimationPrivate::QDeclarativeAbstractAnimationPrivate ( )
inline

Functions

◆ commence()

void QDeclarativeAbstractAnimationPrivate::commence ( )

Definition at line 159 of file qdeclarativeanimation.cpp.

160 {
162 
163  QDeclarativeStateActions actions;
165  q->transition(actions, properties, QDeclarativeAbstractAnimation::Forward);
166 
167  q->qtAnimation()->start();
168  if (q->qtAnimation()->state() != QAbstractAnimation::Running) {
169  running = false;
170  emit q->completed();
171  }
172 }
#define Q_Q(Class)
Definition: qglobal.h:2483
#define emit
Definition: qobjectdefs.h:76
static const QCssKnownValue properties[NumProperties - 1]
Definition: qcssparser.cpp:67

◆ createProperty()

QDeclarativeProperty QDeclarativeAbstractAnimationPrivate::createProperty ( QObject obj,
const QString str,
QObject infoObj 
)
static

Definition at line 174 of file qdeclarativeanimation.cpp.

175 {
176  QDeclarativeProperty prop(obj, str, qmlContext(infoObj));
177  if (!prop.isValid()) {
178  qmlInfo(infoObj) << QDeclarativeAbstractAnimation::tr("Cannot animate non-existent property \"%1\"").arg(str);
179  return QDeclarativeProperty();
180  } else if (!prop.isWritable()) {
181  qmlInfo(infoObj) << QDeclarativeAbstractAnimation::tr("Cannot animate read-only property \"%1\"").arg(str);
182  return QDeclarativeProperty();
183  }
184  return prop;
185 }
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
Q_DECLARATIVE_EXPORT QDeclarativeContext * qmlContext(const QObject *)
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
Definition: qstring.cpp:7186
The QDeclarativeProperty class abstracts accessing properties on objects created from QML...
QDeclarativeInfo qmlInfo(const QObject *me)

Properties

◆ alwaysRunToEnd

bool QDeclarativeAbstractAnimationPrivate::alwaysRunToEnd

Definition at line 217 of file qdeclarativeanimation_p_p.h.

◆ avoidPropertyValueSourceStart

bool QDeclarativeAbstractAnimationPrivate::avoidPropertyValueSourceStart

Definition at line 220 of file qdeclarativeanimation_p_p.h.

◆ componentComplete

bool QDeclarativeAbstractAnimationPrivate::componentComplete

Definition at line 219 of file qdeclarativeanimation_p_p.h.

◆ connectedTimeLine

bool QDeclarativeAbstractAnimationPrivate::connectedTimeLine

Definition at line 218 of file qdeclarativeanimation_p_p.h.

◆ defaultProperty

QDeclarativeProperty QDeclarativeAbstractAnimationPrivate::defaultProperty

Definition at line 228 of file qdeclarativeanimation_p_p.h.

◆ disableUserControl

bool QDeclarativeAbstractAnimationPrivate::disableUserControl

Definition at line 221 of file qdeclarativeanimation_p_p.h.

◆ group

QDeclarativeAnimationGroup* QDeclarativeAbstractAnimationPrivate::group

Definition at line 230 of file qdeclarativeanimation_p_p.h.

◆ loopCount

int QDeclarativeAbstractAnimationPrivate::loopCount

Definition at line 224 of file qdeclarativeanimation_p_p.h.

◆ paused

bool QDeclarativeAbstractAnimationPrivate::paused

Definition at line 216 of file qdeclarativeanimation_p_p.h.

◆ registered

bool QDeclarativeAbstractAnimationPrivate::registered

Definition at line 222 of file qdeclarativeanimation_p_p.h.

◆ running

bool QDeclarativeAbstractAnimationPrivate::running

Definition at line 215 of file qdeclarativeanimation_p_p.h.


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