Qt 4.8
Public Functions | List of all members
QDeclarativePropertyValueInterceptor Class Referenceabstract

The QDeclarativePropertyValueInterceptor class is inherited by property interceptors such as Behavior. More...

#include <qdeclarativepropertyvalueinterceptor.h>

Inheritance diagram for QDeclarativePropertyValueInterceptor:
QDeclarativeBehavior

Public Functions

 QDeclarativePropertyValueInterceptor ()
 Constructs a QDeclarativePropertyValueInterceptor. More...
 
virtual void setTarget (const QDeclarativeProperty &property)=0
 Set the target property for the value interceptor. More...
 
virtual void write (const QVariant &value)=0
 This method will be called when a new value is assigned to the property being intercepted. More...
 
virtual ~QDeclarativePropertyValueInterceptor ()
 

Detailed Description

The QDeclarativePropertyValueInterceptor class is inherited by property interceptors such as Behavior.

Warning
This function is not part of the public interface.

This class intercepts property writes, allowing for custom handling. For example, Behavior uses this interception to provide a default animation for all changes to a property's value.

Definition at line 54 of file qdeclarativepropertyvalueinterceptor.h.

Constructors and Destructors

◆ QDeclarativePropertyValueInterceptor()

QDeclarativePropertyValueInterceptor::QDeclarativePropertyValueInterceptor ( )

Constructs a QDeclarativePropertyValueInterceptor.

Definition at line 63 of file qdeclarativepropertyvalueinterceptor.cpp.

64 {
65 }

◆ ~QDeclarativePropertyValueInterceptor()

QDeclarativePropertyValueInterceptor::~QDeclarativePropertyValueInterceptor ( )
virtual

Definition at line 67 of file qdeclarativepropertyvalueinterceptor.cpp.

68 {
69 }

Functions

◆ setTarget()

void QDeclarativePropertyValueInterceptor::setTarget ( const QDeclarativeProperty property)
pure virtual

Set the target property for the value interceptor.

This method will be called by the QML engine when assigning a value interceptor.

Implemented in QDeclarativeBehavior.

◆ write()

void QDeclarativePropertyValueInterceptor::write ( const QVariant value)
pure virtual

This method will be called when a new value is assigned to the property being intercepted.

Implemented in QDeclarativeBehavior.

Referenced by QDeclarativeVMEMetaObject::metaCall().


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