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

#include <qdeclarativestate_p.h>

Public Functions

void deleteFromBinding ()
 
 QDeclarativeAction ()
 
 QDeclarativeAction (QObject *, const QString &, const QVariant &)
 
 QDeclarativeAction (QObject *, const QString &, QDeclarativeContext *, const QVariant &)
 

Public Variables

bool actionDone:1
 
bool deletableToBinding:1
 
QDeclarativeActionEventevent
 
QDeclarativeAbstractBindingfromBinding
 
QVariant fromValue
 
QDeclarativeProperty property
 
bool restore:1
 
bool reverseEvent:1
 
QObjectspecifiedObject
 
QString specifiedProperty
 
QWeakPointer< QDeclarativeAbstractBindingtoBinding
 
QVariant toValue
 

Detailed Description

Definition at line 61 of file qdeclarativestate_p.h.

Constructors and Destructors

◆ QDeclarativeAction() [1/3]

QDeclarativeAction::QDeclarativeAction ( )

Definition at line 60 of file qdeclarativestate.cpp.

61 : restore(true), actionDone(false), reverseEvent(false), deletableToBinding(false), fromBinding(0), event(0),
63 {
64 }
QDeclarativeActionEvent * event
QDeclarativeAbstractBinding * fromBinding

◆ QDeclarativeAction() [2/3]

QDeclarativeAction::QDeclarativeAction ( QObject target,
const QString propertyName,
const QVariant value 
)

Definition at line 66 of file qdeclarativestate.cpp.

68 : restore(true), actionDone(false), reverseEvent(false), deletableToBinding(false),
69  property(target, propertyName, qmlEngine(target)), toValue(value),
70  fromBinding(0), event(0),
71  specifiedObject(target), specifiedProperty(propertyName)
72 {
73  if (property.isValid())
75 }
QDeclarativeProperty property
bool isValid() const
Returns true if the QDeclarativeProperty refers to a valid property, otherwise false.
Q_DECLARATIVE_EXPORT QDeclarativeEngine * qmlEngine(const QObject *)
QDeclarativeActionEvent * event
QVariant read() const
Returns the property value.
QDeclarativeAbstractBinding * fromBinding

◆ QDeclarativeAction() [3/3]

QDeclarativeAction::QDeclarativeAction ( QObject target,
const QString propertyName,
QDeclarativeContext context,
const QVariant value 
)

Definition at line 77 of file qdeclarativestate.cpp.

79 : restore(true), actionDone(false), reverseEvent(false), deletableToBinding(false),
80  property(target, propertyName, context), toValue(value),
81  fromBinding(0), event(0),
82  specifiedObject(target), specifiedProperty(propertyName)
83 {
84  if (property.isValid())
86 }
QDeclarativeProperty property
bool isValid() const
Returns true if the QDeclarativeProperty refers to a valid property, otherwise false.
QDeclarativeActionEvent * event
QVariant read() const
Returns the property value.
QDeclarativeAbstractBinding * fromBinding

Functions

◆ deleteFromBinding()

void QDeclarativeAction::deleteFromBinding ( )

Definition at line 394 of file qdeclarativestate.cpp.

Referenced by QDeclarativeState::apply().

395 {
396  if (fromBinding) {
398  fromBinding->destroy();
399  fromBinding = 0;
400  }
401 }
QDeclarativeProperty property
virtual void destroy(DestroyMode mode=DisconnectBinding)
Destroy the binding.
static QDeclarativeAbstractBinding * setBinding(QObject *, int coreIndex, int valueTypeIndex, QDeclarativeAbstractBinding *, WriteFlags flags=DontRemoveBinding)
QDeclarativeAbstractBinding * fromBinding

Properties

◆ actionDone

bool QDeclarativeAction::actionDone

◆ deletableToBinding

bool QDeclarativeAction::deletableToBinding

◆ event

QDeclarativeActionEvent* QDeclarativeAction::event

◆ fromBinding

QDeclarativeAbstractBinding* QDeclarativeAction::fromBinding

◆ fromValue

QVariant QDeclarativeAction::fromValue

◆ property

QDeclarativeProperty QDeclarativeAction::property

◆ restore

bool QDeclarativeAction::restore

◆ reverseEvent

bool QDeclarativeAction::reverseEvent

◆ specifiedObject

QObject* QDeclarativeAction::specifiedObject

◆ specifiedProperty

QString QDeclarativeAction::specifiedProperty

◆ toBinding

QWeakPointer<QDeclarativeAbstractBinding> QDeclarativeAction::toBinding

◆ toValue

QVariant QDeclarativeAction::toValue

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