Qt 4.8
Public Functions | Properties | Friends | List of all members
QDeclarativeDomValueValueInterceptor Class Reference

The QDeclarativeDomValueValueInterceptor class represents a value interceptor assignment value. More...

#include <qdeclarativedom_p.h>

Public Functions

QDeclarativeDomObject object () const
 Return the value interceptor object. More...
 
QDeclarativeDomValueValueInterceptoroperator= (const QDeclarativeDomValueValueInterceptor &)
 Assign other to this QDeclarativeDomValueValueInterceptor. More...
 
 QDeclarativeDomValueValueInterceptor ()
 Construct an empty QDeclarativeDomValueValueInterceptor. More...
 
 QDeclarativeDomValueValueInterceptor (const QDeclarativeDomValueValueInterceptor &)
 Create a copy of other QDeclarativeDomValueValueInterceptor. More...
 
 ~QDeclarativeDomValueValueInterceptor ()
 Destroy the QDeclarativeDomValueValueInterceptor. More...
 

Properties

QSharedDataPointer< QDeclarativeDomBasicValuePrivated
 

Friends

class QDeclarativeDomValue
 

Detailed Description

The QDeclarativeDomValueValueInterceptor class represents a value interceptor assignment value.

Warning
This function is not part of the public interface.
In QML, value interceptor are special write-intercepting types that may be
assigned to properties.  Value interceptor inherit the QDeclarativePropertyValueInterceptor
class.  In the example below, the "x" property is being assigned the
Behavior value interceptor.
Behavior on x { NumberAnimation { duration: 500 } }
}

Definition at line 246 of file qdeclarativedom_p.h.

Constructors and Destructors

◆ QDeclarativeDomValueValueInterceptor() [1/2]

QDeclarativeDomValueValueInterceptor::QDeclarativeDomValueValueInterceptor ( )

Construct an empty QDeclarativeDomValueValueInterceptor.

Definition at line 1205 of file qdeclarativedom.cpp.

1205  :
1207 {
1208 }
QSharedDataPointer< QDeclarativeDomBasicValuePrivate > d

◆ QDeclarativeDomValueValueInterceptor() [2/2]

QDeclarativeDomValueValueInterceptor::QDeclarativeDomValueValueInterceptor ( const QDeclarativeDomValueValueInterceptor other)

Create a copy of other QDeclarativeDomValueValueInterceptor.

Definition at line 1213 of file qdeclarativedom.cpp.

1214 : d(other.d)
1215 {
1216 }
QSharedDataPointer< QDeclarativeDomBasicValuePrivate > d

◆ ~QDeclarativeDomValueValueInterceptor()

QDeclarativeDomValueValueInterceptor::~QDeclarativeDomValueValueInterceptor ( )

Destroy the QDeclarativeDomValueValueInterceptor.

Definition at line 1221 of file qdeclarativedom.cpp.

1222 {
1223 }

Functions

◆ object()

QDeclarativeDomObject QDeclarativeDomValueValueInterceptor::object ( ) const

Return the value interceptor object.

In the example below, an object representing the Behavior will be returned.

Behavior on x { NumberAnimation { duration: 500 } }
}

Definition at line 1245 of file qdeclarativedom.cpp.

1246 {
1248  if (d->value) {
1249  rv.d->object = d->value->object;
1250  rv.d->object->addref();
1251  }
1252  return rv;
1253 }
QDeclarativeParser::Value * value
QDeclarativeParser::Object * object
QSharedDataPointer< QDeclarativeDomObjectPrivate > d
The QDeclarativeDomObject class represents an object instantiation.
QSharedDataPointer< QDeclarativeDomBasicValuePrivate > d

◆ operator=()

QDeclarativeDomValueValueInterceptor & QDeclarativeDomValueValueInterceptor::operator= ( const QDeclarativeDomValueValueInterceptor other)

Assign other to this QDeclarativeDomValueValueInterceptor.

Definition at line 1228 of file qdeclarativedom.cpp.

1229 {
1230  d = other.d;
1231  return *this;
1232 }
QSharedDataPointer< QDeclarativeDomBasicValuePrivate > d

Friends and Related Functions

◆ QDeclarativeDomValue

friend class QDeclarativeDomValue
friend

Definition at line 257 of file qdeclarativedom_p.h.

Properties

◆ d

QSharedDataPointer<QDeclarativeDomBasicValuePrivate> QDeclarativeDomValueValueInterceptor::d
private

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