Qt 4.8
Public Functions | Public Variables | List of all members
QDeclarativeCompiledBindingsPrivate::Binding Struct Reference
Inheritance diagram for QDeclarativeCompiledBindingsPrivate::Binding:
QDeclarativeAbstractBinding QDeclarativeDelayedError

Public Functions

 Binding ()
 
virtual void destroy (DestroyMode mode)
 Destroy the binding. More...
 
virtual void disconnect (DisconnectMode disconnectMode)
 
virtual void setEnabled (bool, QDeclarativePropertyPrivate::WriteFlags flags)
 
virtual void update (QDeclarativePropertyPrivate::WriteFlags flags)
 
- Public Functions inherited from QDeclarativeAbstractBinding
void addToObject (QObject *, int)
 Add this binding to object. More...
 
virtual Type bindingType () const
 
virtual QString expression () const
 
QObjectobject () const
 
int propertyIndex () const
 
 QDeclarativeAbstractBinding ()
 
void removeFromObject ()
 Remove the binding from the object. More...
 
void setEnabled (bool e)
 
void update ()
 
- Public Functions inherited from QDeclarativeDelayedError
bool addError (QDeclarativeEnginePrivate *)
 
 QDeclarativeDelayedError ()
 
void removeError ()
 
 ~QDeclarativeDelayedError ()
 

Public Variables

bool enabled:1
 
int index:30
 
QDeclarativeCompiledBindingsPrivateparent
 
int property
 The property to be updated. More...
 
QObjectscope
 
QObjecttarget
 The object to be updated. More...
 
bool updating:1
 
- Public Variables inherited from QDeclarativeDelayedError
QDeclarativeError error
 

Additional Inherited Members

- Public Types inherited from QDeclarativeAbstractBinding
enum  DestroyMode { DisconnectBinding, KeepBindingConnected }
 
enum  DisconnectMode { DisconnectOne, DisconnectAll }
 
typedef QWeakPointer< QDeclarativeAbstractBindingPointer
 
enum  Type { PropertyBinding, ValueTypeProxy }
 
- Static Public Functions inherited from QDeclarativeAbstractBinding
static Pointer getPointer (QDeclarativeAbstractBinding *p)
 
- Protected Functions inherited from QDeclarativeAbstractBinding
void clear ()
 
virtual ~QDeclarativeAbstractBinding ()
 

Detailed Description

Definition at line 212 of file qdeclarativecompiledbindings.cpp.

Constructors and Destructors

◆ Binding()

QDeclarativeCompiledBindingsPrivate::Binding::Binding ( )
inline

Functions

◆ destroy()

void QDeclarativeCompiledBindingsPrivate::Binding::destroy ( DestroyMode  mode)
virtual

Destroy the binding.

Use this instead of calling delete.

Bindings are free to implement their own memory management, so the delete operator is not necessarily safe. The default implementation clears the binding, removes it from the object and calls delete.

Reimplemented from QDeclarativeAbstractBinding.

Definition at line 350 of file qdeclarativecompiledbindings.cpp.

◆ disconnect()

void QDeclarativeCompiledBindingsPrivate::Binding::disconnect ( DisconnectMode  disconnectMode)
virtual

◆ setEnabled()

void QDeclarativeCompiledBindingsPrivate::Binding::setEnabled ( bool  e,
QDeclarativePropertyPrivate::WriteFlags  flags 
)
virtual

Implements QDeclarativeAbstractBinding.

Definition at line 334 of file qdeclarativecompiledbindings.cpp.

335 {
336  if (enabled != e) {
337  enabled = e;
338 
339  if (e) update(flags);
340  }
341 }

◆ update()

void QDeclarativeCompiledBindingsPrivate::Binding::update ( QDeclarativePropertyPrivate::WriteFlags  flags)
virtual

Properties

◆ enabled

bool QDeclarativeCompiledBindingsPrivate::Binding::enabled

◆ index

int QDeclarativeCompiledBindingsPrivate::Binding::index

◆ parent

QDeclarativeCompiledBindingsPrivate* QDeclarativeCompiledBindingsPrivate::Binding::parent

◆ property

string Binding::property

◆ scope

QObject* QDeclarativeCompiledBindingsPrivate::Binding::scope

◆ target

Object Binding::target

◆ updating

bool QDeclarativeCompiledBindingsPrivate::Binding::updating

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