Qt 4.8
Public Types | Public Functions | Properties | List of all members
QDeclarativeSimpleAction Class Reference

#include <qdeclarativestate_p_p.h>

Public Types

enum  State { StartState, EndState }
 

Public Functions

QDeclarativeAbstractBindingbinding () const
 
QDeclarativeActionEventevent () const
 
QDeclarativeSimpleActionoperator= (const QDeclarativeSimpleAction &other)
 
const QDeclarativePropertyproperty () const
 
 QDeclarativeSimpleAction (const QDeclarativeAction &a, State state=StartState)
 
 QDeclarativeSimpleAction (const QDeclarativeSimpleAction &other)
 
bool reverseEvent () const
 
void setBinding (QDeclarativeAbstractBinding *binding)
 
void setProperty (const QDeclarativeProperty &property)
 
void setValue (const QVariant &value)
 
QObjectspecifiedObject () const
 
const QStringspecifiedProperty () const
 
const QVariantvalue () const
 
 ~QDeclarativeSimpleAction ()
 

Properties

QDeclarativeAbstractBinding::Pointer m_binding
 
QDeclarativeActionEventm_event
 
QDeclarativeProperty m_property
 
bool m_reverseEvent
 
QObjectm_specifiedObject
 
QString m_specifiedProperty
 
QVariant m_value
 

Detailed Description

Definition at line 70 of file qdeclarativestate_p_p.h.

Enumerations

◆ State

Constructors and Destructors

◆ QDeclarativeSimpleAction() [1/2]

QDeclarativeSimpleAction::QDeclarativeSimpleAction ( const QDeclarativeAction a,
State  state = StartState 
)
inline

Definition at line 74 of file qdeclarativestate_p_p.h.

75  {
76  m_property = a.property;
79  m_event = a.event;
80  if (state == StartState) {
81  m_value = a.fromValue;
84  }
85  m_reverseEvent = true;
86  } else {
87  m_value = a.toValue;
88  m_binding = a.toBinding;
89  m_reverseEvent = false;
90  }
91  }
QDeclarativeProperty property
static Pointer getPointer(QDeclarativeAbstractBinding *p)
QDeclarativeProperty m_property
static QDeclarativeAbstractBinding * binding(QObject *, int coreIndex, int valueTypeIndex)
QDeclarativeActionEvent * m_event
QWeakPointer< QDeclarativeAbstractBinding > toBinding
QDeclarativeAbstractBinding::Pointer m_binding
QDeclarativeActionEvent * event

◆ ~QDeclarativeSimpleAction()

QDeclarativeSimpleAction::~QDeclarativeSimpleAction ( )
inline

Definition at line 93 of file qdeclarativestate_p_p.h.

94  {
95  }

◆ QDeclarativeSimpleAction() [2/2]

QDeclarativeSimpleAction::QDeclarativeSimpleAction ( const QDeclarativeSimpleAction other)
inline

Definition at line 97 of file qdeclarativestate_p_p.h.

98  : m_property(other.m_property),
99  m_value(other.m_value),
103  m_event(other.m_event),
105  {
106  }
static Pointer getPointer(QDeclarativeAbstractBinding *p)
QDeclarativeProperty m_property
QDeclarativeActionEvent * m_event
QDeclarativeAbstractBinding * binding() const
QDeclarativeAbstractBinding::Pointer m_binding

Functions

◆ binding()

QDeclarativeAbstractBinding* QDeclarativeSimpleAction::binding ( ) const
inline

◆ event()

QDeclarativeActionEvent* QDeclarativeSimpleAction::event ( ) const
inline

Definition at line 161 of file qdeclarativestate_p_p.h.

162  {
163  return m_event;
164  }
QDeclarativeActionEvent * m_event

◆ operator=()

QDeclarativeSimpleAction& QDeclarativeSimpleAction::operator= ( const QDeclarativeSimpleAction other)
inline

Definition at line 108 of file qdeclarativestate_p_p.h.

109  {
110  m_property = other.m_property;
111  m_value = other.m_value;
115  m_event = other.m_event;
117 
118  return *this;
119  }
static Pointer getPointer(QDeclarativeAbstractBinding *p)
QDeclarativeProperty m_property
QDeclarativeActionEvent * m_event
QDeclarativeAbstractBinding * binding() const
QDeclarativeAbstractBinding::Pointer m_binding

◆ property()

const QDeclarativeProperty& QDeclarativeSimpleAction::property ( ) const
inline

◆ reverseEvent()

bool QDeclarativeSimpleAction::reverseEvent ( ) const
inline

Definition at line 166 of file qdeclarativestate_p_p.h.

167  {
168  return m_reverseEvent;
169  }

◆ setBinding()

void QDeclarativeSimpleAction::setBinding ( QDeclarativeAbstractBinding binding)
inline

Definition at line 141 of file qdeclarativestate_p_p.h.

Referenced by QDeclarativeState::changeBindingInRevertList().

142  {
144  }
static Pointer getPointer(QDeclarativeAbstractBinding *p)
QDeclarativeAbstractBinding::Pointer m_binding

◆ setProperty()

void QDeclarativeSimpleAction::setProperty ( const QDeclarativeProperty property)
inline

Definition at line 121 of file qdeclarativestate_p_p.h.

122  {
124  }
QDeclarativeProperty m_property
const QDeclarativeProperty & property() const

◆ setValue()

void QDeclarativeSimpleAction::setValue ( const QVariant value)
inline

Definition at line 131 of file qdeclarativestate_p_p.h.

Referenced by QDeclarativeState::changeValueInRevertList().

132  {
133  m_value = value;
134  }
const QVariant & value() const

◆ specifiedObject()

QObject* QDeclarativeSimpleAction::specifiedObject ( ) const
inline

◆ specifiedProperty()

const QString& QDeclarativeSimpleAction::specifiedProperty ( ) const
inline

◆ value()

const QVariant& QDeclarativeSimpleAction::value ( ) const
inline

Properties

◆ m_binding

QDeclarativeAbstractBinding::Pointer QDeclarativeSimpleAction::m_binding
private

Definition at line 174 of file qdeclarativestate_p_p.h.

Referenced by binding(), operator=(), QDeclarativeSimpleAction(), and setBinding().

◆ m_event

QDeclarativeActionEvent* QDeclarativeSimpleAction::m_event
private

Definition at line 177 of file qdeclarativestate_p_p.h.

Referenced by event(), operator=(), and QDeclarativeSimpleAction().

◆ m_property

QDeclarativeProperty QDeclarativeSimpleAction::m_property
private

◆ m_reverseEvent

bool QDeclarativeSimpleAction::m_reverseEvent
private

Definition at line 178 of file qdeclarativestate_p_p.h.

Referenced by operator=(), QDeclarativeSimpleAction(), and reverseEvent().

◆ m_specifiedObject

QObject* QDeclarativeSimpleAction::m_specifiedObject
private

Definition at line 175 of file qdeclarativestate_p_p.h.

Referenced by operator=(), QDeclarativeSimpleAction(), and specifiedObject().

◆ m_specifiedProperty

QString QDeclarativeSimpleAction::m_specifiedProperty
private

Definition at line 176 of file qdeclarativestate_p_p.h.

Referenced by operator=(), QDeclarativeSimpleAction(), and specifiedProperty().

◆ m_value

QVariant QDeclarativeSimpleAction::m_value
private

Definition at line 173 of file qdeclarativestate_p_p.h.

Referenced by operator=(), QDeclarativeSimpleAction(), setValue(), and value().


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