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

#include <qdeclarativeanimation_p_p.h>

Inheritance diagram for QDeclarativeScriptActionPrivate:
QDeclarativeAbstractAnimationPrivate QObjectPrivate QObjectData

Public Functions

void execute ()
 
void init ()
 
 QDeclarativeScriptActionPrivate ()
 
- Public Functions inherited from QDeclarativeAbstractAnimationPrivate
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
 

Public Variables

bool hasRunScriptScript
 
QString name
 
QAnimationActionProxy< QDeclarativeScriptActionPrivate, &QDeclarativeScriptActionPrivate::executeproxy
 
bool reversing
 
QActionAnimationrsa
 
QDeclarativeScriptString runScriptScript
 
QDeclarativeScriptString script
 
- Public Variables inherited from QDeclarativeAbstractAnimationPrivate
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 **)
 
- Static Public Functions inherited from QDeclarativeAbstractAnimationPrivate
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)
 

Detailed Description

Definition at line 247 of file qdeclarativeanimation_p_p.h.

Constructors and Destructors

◆ QDeclarativeScriptActionPrivate()

QDeclarativeScriptActionPrivate::QDeclarativeScriptActionPrivate ( )

Definition at line 3098 of file qdeclarativeanimation.cpp.

QAnimationActionProxy< QDeclarativeScriptActionPrivate, &QDeclarativeScriptActionPrivate::execute > proxy

Functions

◆ execute()

void QDeclarativeScriptActionPrivate::execute ( )

Definition at line 871 of file qdeclarativeanimation.cpp.

872 {
875  return;
876 
878 
879  const QString &str = scriptStr.script();
880  if (!str.isEmpty()) {
881  QDeclarativeExpression expr(scriptStr.context(), scriptStr.scopeObject(), str);
883  if (ddata && ddata->outerContext && !ddata->outerContext->url.isEmpty())
884  expr.setSourceLocation(ddata->outerContext->url.toString(), ddata->lineNumber);
885  expr.evaluate();
886  if (expr.hasError())
887  qmlInfo(q) << expr.error();
888  }
889 }
static QDeclarativeData * get(const QObject *object, bool create=false)
QDeclarativeContext * context() const
Returns the context for the script.
The QString class provides a Unicode character string.
Definition: qstring.h:83
#define Q_Q(Class)
Definition: qglobal.h:2483
The QDeclarativeScriptString class encapsulates a script and its context.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Definition: qstring.h:704
QObject * scopeObject() const
Returns the scope object for the script.
The QDeclarativeExpression class evaluates JavaScript in a QML context.
QDeclarativeInfo qmlInfo(const QObject *me)
QString script() const
Returns the script text.

◆ init()

void QDeclarativeScriptActionPrivate::init ( )

Definition at line 820 of file qdeclarativeanimation.cpp.

821 {
823  rsa = new QActionAnimation(&proxy);
825 }
#define Q_Q(Class)
Definition: qglobal.h:2483
QAnimationActionProxy< QDeclarativeScriptActionPrivate, &QDeclarativeScriptActionPrivate::execute > proxy
void QDeclarative_setParent_noEvent(QObject *object, QObject *parent)
Makes the object a child of parent.

Properties

◆ hasRunScriptScript

bool QDeclarativeScriptActionPrivate::hasRunScriptScript

Definition at line 258 of file qdeclarativeanimation_p_p.h.

◆ name

QString QDeclarativeScriptActionPrivate::name

Definition at line 256 of file qdeclarativeanimation_p_p.h.

◆ proxy

Definition at line 264 of file qdeclarativeanimation_p_p.h.

◆ reversing

bool QDeclarativeScriptActionPrivate::reversing

Definition at line 259 of file qdeclarativeanimation_p_p.h.

◆ rsa

QActionAnimation* QDeclarativeScriptActionPrivate::rsa

Definition at line 265 of file qdeclarativeanimation_p_p.h.

◆ runScriptScript

QDeclarativeScriptString QDeclarativeScriptActionPrivate::runScriptScript

Definition at line 257 of file qdeclarativeanimation_p_p.h.

◆ script

QDeclarativeScriptString QDeclarativeScriptActionPrivate::script

Definition at line 255 of file qdeclarativeanimation_p_p.h.


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