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

The QDeclarativeDomValueValueSource class represents a value source assignment value. More...

#include <qdeclarativedom_p.h>

Public Functions

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

Properties

QSharedDataPointer< QDeclarativeDomBasicValuePrivated
 

Friends

class QDeclarativeDomValue
 

Detailed Description

The QDeclarativeDomValueValueSource class represents a value source assignment value.

Warning
This function is not part of the public interface.
In QML, value sources are special value generating types that may be
assigned to properties.  Value sources inherit the QDeclarativePropertyValueSource
class.  In the example below, the "x" property is being assigned the
NumberAnimation value source.
from: 0
to: 100
loops: Animation.Infinite
}
}

Definition at line 231 of file qdeclarativedom_p.h.

Constructors and Destructors

◆ QDeclarativeDomValueValueSource() [1/2]

QDeclarativeDomValueValueSource::QDeclarativeDomValueValueSource ( )

Construct an empty QDeclarativeDomValueValueSource.

Definition at line 1128 of file qdeclarativedom.cpp.

1128  :
1130 {
1131 }
QSharedDataPointer< QDeclarativeDomBasicValuePrivate > d

◆ QDeclarativeDomValueValueSource() [2/2]

QDeclarativeDomValueValueSource::QDeclarativeDomValueValueSource ( const QDeclarativeDomValueValueSource other)

Create a copy of other QDeclarativeDomValueValueSource.

Definition at line 1136 of file qdeclarativedom.cpp.

1137 : d(other.d)
1138 {
1139 }
QSharedDataPointer< QDeclarativeDomBasicValuePrivate > d

◆ ~QDeclarativeDomValueValueSource()

QDeclarativeDomValueValueSource::~QDeclarativeDomValueValueSource ( )

Destroy the QDeclarativeDomValueValueSource.

Definition at line 1144 of file qdeclarativedom.cpp.

1145 {
1146 }

Functions

◆ object()

QDeclarativeDomObject QDeclarativeDomValueValueSource::object ( ) const

Return the value source object.

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

from: 0
to: 100
loops: Animation.Infinite
}
}

Definition at line 1172 of file qdeclarativedom.cpp.

1173 {
1175  if (d->value) {
1176  rv.d->object = d->value->object;
1177  rv.d->object->addref();
1178  }
1179  return rv;
1180 }
QDeclarativeParser::Value * value
QDeclarativeParser::Object * object
QSharedDataPointer< QDeclarativeDomObjectPrivate > d
The QDeclarativeDomObject class represents an object instantiation.
QSharedDataPointer< QDeclarativeDomBasicValuePrivate > d

◆ operator=()

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

Assign other to this QDeclarativeDomValueValueSource.

Definition at line 1151 of file qdeclarativedom.cpp.

1152 {
1153  d = other.d;
1154  return *this;
1155 }
QSharedDataPointer< QDeclarativeDomBasicValuePrivate > d

Friends and Related Functions

◆ QDeclarativeDomValue

friend class QDeclarativeDomValue
friend

Definition at line 242 of file qdeclarativedom_p.h.

Properties

◆ d

QSharedDataPointer<QDeclarativeDomBasicValuePrivate> QDeclarativeDomValueValueSource::d
private

Definition at line 243 of file qdeclarativedom_p.h.

Referenced by object(), operator=(), and QDeclarativeDomValue::toValueSource().


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