Qt 4.8
|
#include <qdeclarativeproperty_p.h>
Public Types | |
enum | WriteFlag { BypassInterceptor = 0x01, DontRemoveBinding = 0x02, RemoveBindingOnAliasWrite = 0x04 } |
Public Functions | |
void | initDefault (QObject *obj) |
Initialize from the default property of obj. More... | |
void | initProperty (QObject *obj, const QString &name) |
bool | isValueType () const |
int | propertyType () const |
QDeclarativeProperty::PropertyTypeCategory | propertyTypeCategory () const |
QDeclarativePropertyPrivate () | |
QVariant | readValueProperty () |
QDeclarativeProperty::Type | type () const |
bool | writeValueProperty (const QVariant &, WriteFlags) |
Public Functions inherited from QDeclarativeRefCount | |
void | addref () |
QDeclarativeRefCount () | |
void | release () |
virtual | ~QDeclarativeRefCount () |
Static Public Functions | |
static QDeclarativeAbstractBinding * | binding (QObject *, int coreIndex, int valueTypeIndex) |
static QDeclarativeAbstractBinding * | binding (const QDeclarativeProperty &that) |
Returns the binding associated with this property, or 0 if no binding exists. More... | |
static int | bindingIndex (const QDeclarativeProperty &that) |
Returns the "property index" for use in bindings. More... | |
static bool | canConvert (const QMetaObject *from, const QMetaObject *to) |
Returns true if from inherits to. More... | |
static bool | connect (QObject *sender, int signal_index, const QObject *receiver, int method_index, int type=0, int *types=0) |
Connect sender signal_index to receiver method_index with the specified type and types. More... | |
static bool | equal (const QMetaObject *, const QMetaObject *) |
Returns true if lhs and rhs refer to the same metaobject data. More... | |
static void | findAliasTarget (QObject *, int, QObject **, int *) |
static QMetaMethod | findSignalByName (const QMetaObject *mo, const QByteArray &) |
Return the signal corresponding to name. More... | |
static const QMetaObject * | metaObjectForProperty (const QMetaObject *, int) |
Return metaObject's [super] meta object that provides data for property. More... | |
static const QMetaObject * | rawMetaObjectForType (QDeclarativeEnginePrivate *, int) |
static QDeclarativeProperty | restore (const QByteArray &, QObject *, QDeclarativeContextData *) |
static QDeclarativeProperty | restore (const QDeclarativePropertyCache::Data &, const QDeclarativePropertyCache::ValueTypeData &, QObject *, QDeclarativeContextData *) |
static QByteArray | saveProperty (const QMetaObject *, int) |
static QByteArray | saveValueType (const QMetaObject *, int, const QMetaObject *, int) |
static QDeclarativeAbstractBinding * | setBinding (QObject *, int coreIndex, int valueTypeIndex, QDeclarativeAbstractBinding *, WriteFlags flags=DontRemoveBinding) |
static QDeclarativeAbstractBinding * | setBinding (const QDeclarativeProperty &that, QDeclarativeAbstractBinding *, WriteFlags flags=DontRemoveBinding) |
Set the binding associated with this property to newBinding. More... | |
static QDeclarativeAbstractBinding * | setBindingNoEnable (QObject *, int coreIndex, int valueTypeIndex, QDeclarativeAbstractBinding *) |
static QDeclarativeExpression * | setSignalExpression (const QDeclarativeProperty &that, QDeclarativeExpression *) |
Set the signal expression associated with this signal property to expr. More... | |
static QDeclarativeExpression * | signalExpression (const QDeclarativeProperty &that) |
Returns the expression associated with this signal property, or 0 if no signal expression exists. More... | |
static int | valueTypeCoreIndex (const QDeclarativeProperty &that) |
static bool | write (QObject *, const QDeclarativePropertyCache::Data &, const QVariant &, QDeclarativeContextData *, WriteFlags flags=0) |
static bool | write (const QDeclarativeProperty &that, const QVariant &, WriteFlags) |
static bool | writeEnumProperty (const QMetaProperty &prop, int idx, QObject *object, const QVariant &value, int flags) |
Definition at line 68 of file qdeclarativeproperty_p.h.
Enumerator | |
---|---|
BypassInterceptor | |
DontRemoveBinding | |
RemoveBindingOnAliasWrite |
Definition at line 71 of file qdeclarativeproperty_p.h.
|
inline |
Definition at line 74 of file qdeclarativeproperty_p.h.
|
static |
Definition at line 684 of file qdeclarativeproperty.cpp.
Referenced by QDeclarativeState::addEntriesToRevertList(), QDeclarativeState::apply(), QDeclarativePropertyChanges::changeExpression(), QDeclarativePropertyChanges::changeValue(), QDeclarativeEngineDebugService::propertyData(), QDeclarativeSimpleAction::QDeclarativeSimpleAction(), QDeclarativeState::removeAllEntriesFromRevertList(), QDeclarativeState::removeEntryFromRevertList(), QDeclarativeEngineDebugService::resetBinding(), and QDeclarativeAnchorChanges::saveOriginals().
|
static |
Returns the binding associated with this property, or 0 if no binding exists.
Definition at line 647 of file qdeclarativeproperty.cpp.
|
static |
Returns the "property index" for use in bindings.
The top 8 bits are the value type offset, and 0 otherwise. The bottom 24-bits are the regular property index.
Definition at line 1440 of file qdeclarativeproperty.cpp.
|
static |
Returns true if from inherits to.
Definition at line 1533 of file qdeclarativeproperty.cpp.
Referenced by QDeclarativeListReference::append(), and QDeclarativeBindingCompilerPrivate::compile().
|
static |
Connect sender signal_index to receiver method_index with the specified type and types.
This behaves identically to QMetaObject::connect() except that it connects any lazy "proxy" signal connections set up by QML.
It is possible that this logic should be moved to QMetaObject::connect().
Definition at line 1637 of file qdeclarativeproperty.cpp.
Referenced by QDeclarativeNotifierEndpoint::connect(), QDeclarativeVMEMetaObject::connectAlias(), QDeclarativeProperty::connectNotifySignal(), QDeclarativeBoundSignal::init(), QDeclarativeProxyMetaObject::metaCall(), and QDeclarativeWatchProxy::QDeclarativeWatchProxy().
|
static |
Returns true if lhs and rhs refer to the same metaobject data.
Definition at line 1525 of file qdeclarativeproperty.cpp.
Referenced by QDeclarativeCompiler::buildPropertyObjectAssignment(), and QDeclarativeCompiler::canCoerce().
|
static |
Definition at line 722 of file qdeclarativeproperty.cpp.
|
static |
Return the signal corresponding to name.
Definition at line 1550 of file qdeclarativeproperty.cpp.
Referenced by hasValidSignal(), and QDeclarativeCompiler::indexOfSignal().
void QDeclarativePropertyPrivate::initDefault | ( | QObject * | obj | ) |
Initialize from the default property of obj.
Definition at line 165 of file qdeclarativeproperty.cpp.
Referenced by QDeclarativeProperty::QDeclarativeProperty().
Definition at line 218 of file qdeclarativeproperty.cpp.
Referenced by QDeclarativeProperty::QDeclarativeProperty().
bool QDeclarativePropertyPrivate::isValueType | ( | ) | const |
Definition at line 445 of file qdeclarativeproperty.cpp.
Referenced by QDeclarativeProperty::name(), and QDeclarativeProperty::propertyTypeName().
|
static |
Return metaObject's [super] meta object that provides data for property.
Definition at line 1661 of file qdeclarativeproperty.cpp.
int QDeclarativePropertyPrivate::propertyType | ( | ) | const |
Definition at line 450 of file qdeclarativeproperty.cpp.
Referenced by QDeclarativeProperty::propertyType().
QDeclarativeProperty::PropertyTypeCategory QDeclarativePropertyPrivate::propertyTypeCategory | ( | ) | const |
Definition at line 370 of file qdeclarativeproperty.cpp.
Referenced by QDeclarativeProperty::propertyTypeCategory().
|
static |
Definition at line 1257 of file qdeclarativeproperty.cpp.
QVariant QDeclarativePropertyPrivate::readValueProperty | ( | ) |
Definition at line 986 of file qdeclarativeproperty.cpp.
Referenced by QDeclarativeProperty::read().
|
static |
Definition at line 1489 of file qdeclarativeproperty.cpp.
Referenced by QDeclarativeValueTypeScriptClass::setProperty(), and QDeclarativeObjectScriptClass::setProperty().
|
static |
Definition at line 1507 of file qdeclarativeproperty.cpp.
|
static |
Definition at line 1477 of file qdeclarativeproperty.cpp.
Referenced by QDeclarativeCompiler::genPropertyData().
|
static |
Definition at line 1459 of file qdeclarativeproperty.cpp.
Referenced by QDeclarativeCompiler::genValueTypeData().
|
static |
Definition at line 758 of file qdeclarativeproperty.cpp.
Referenced by QDeclarativeState::addEntriesToRevertList(), QDeclarativeState::apply(), QDeclarativeTransitionManagerPrivate::applyBindings(), QDeclarativeTransitionManager::cancel(), QDeclarativePropertyChanges::changeExpression(), QDeclarativePropertyChanges::changeValue(), QDeclarativeAnchorChanges::clearBindings(), QDeclarativeAction::deleteFromBinding(), QDeclarativeAnchorChanges::execute(), QDeclarativeVMEMetaObject::metaCall(), QDeclarativeState::removeAllEntriesFromRevertList(), removeBindingOnProperty(), QDeclarativeState::removeEntryFromRevertList(), QDeclarativeEngineDebugService::resetBinding(), QDeclarativeAnchorChanges::reverse(), QDeclarativeEngineDebugService::setBinding(), setBinding(), QDeclarativeValueTypeScriptClass::setProperty(), QDeclarativeObjectScriptClass::setProperty(), and QDeclarativeTransitionManager::transition().
|
static |
Set the binding associated with this property to newBinding.
Returns the existing binding (if any), otherwise 0.
newBinding will be enabled, and the returned binding (if any) will be disabled.
Ownership of newBinding transfers to QML. Ownership of the return value is assumed by the caller.
flags is passed through to the binding and is used for the initial update (when the binding sets the initial value, it will use these flags for the write).
Definition at line 669 of file qdeclarativeproperty.cpp.
|
static |
Definition at line 812 of file qdeclarativeproperty.cpp.
|
static |
Set the signal expression associated with this signal property to expr.
Returns the existing signal expression (if any), otherwise 0.
Ownership of expr transfers to QML. Ownership of the return value is assumed by the caller.
Definition at line 892 of file qdeclarativeproperty.cpp.
Referenced by QDeclarativeReplaceSignalHandler::execute(), QDeclarativeEngineDebugService::resetBinding(), QDeclarativeReplaceSignalHandler::reverse(), QDeclarativeReplaceSignalHandler::rewind(), and QDeclarativeEngineDebugService::setBinding().
|
static |
Returns the expression associated with this signal property, or 0 if no signal expression exists.
Definition at line 866 of file qdeclarativeproperty.cpp.
Referenced by QDeclarativeReplaceSignalHandler::saveCurrentValues().
QDeclarativeProperty::Type QDeclarativePropertyPrivate::type | ( | ) | const |
Definition at line 465 of file qdeclarativeproperty.cpp.
Referenced by QDeclarativeProperty::type().
|
static |
Definition at line 1431 of file qdeclarativeproperty.cpp.
|
static |
Definition at line 1104 of file qdeclarativeproperty.cpp.
Referenced by QDeclarativeSpringAnimationPrivate::animate(), QSmoothedAnimation::init(), QDeclarativeObjectScriptClass::setProperty(), QDeclarativeAnimationPropertyUpdater::setValue(), QDeclarativeTransitionManager::transition(), QDeclarativePropertyAction::transition(), QDeclarativeBinding::update(), QSmoothedAnimation::updateCurrentTime(), QDeclarativeBehavior::write(), and QDeclarativeProperty::write().
|
static |
Definition at line 1345 of file qdeclarativeproperty.cpp.
|
static |
Definition at line 1026 of file qdeclarativeproperty.cpp.
bool QDeclarativePropertyPrivate::writeValueProperty | ( | const QVariant & | value, |
WriteFlags | flags | ||
) |
Definition at line 1063 of file qdeclarativeproperty.cpp.
Referenced by write().
QDeclarativeContextData* QDeclarativePropertyPrivate::context |
Definition at line 77 of file qdeclarativeproperty_p.h.
Referenced by QDeclarativeProperty::propertyTypeName(), QDeclarativeProperty::QDeclarativeProperty(), and restore().
QDeclarativePropertyCache::Data QDeclarativePropertyPrivate::core |
Definition at line 82 of file qdeclarativeproperty_p.h.
Referenced by binding(), bindingIndex(), QDeclarativeProperty::connectNotifySignal(), QDeclarativeProperty::hasNotifySignal(), QDeclarativeProperty::index(), QDeclarativeProperty::isDesignable(), QDeclarativeProperty::isResettable(), QDeclarativeProperty::isWritable(), QDeclarativeProperty::method(), QDeclarativeProperty::name(), QDeclarativeProperty::operator==(), QDeclarativeProperty::property(), QDeclarativeProperty::propertyTypeName(), QDeclarativeProperty::reset(), restore(), setBinding(), and write().
QDeclarativeEngine* QDeclarativePropertyPrivate::engine |
Definition at line 78 of file qdeclarativeproperty_p.h.
Referenced by QDeclarativeProperty::name(), QDeclarativeProperty::QDeclarativeProperty(), and restore().
bool QDeclarativePropertyPrivate::isNameCached |
Definition at line 81 of file qdeclarativeproperty_p.h.
Referenced by QDeclarativeProperty::name().
QString QDeclarativePropertyPrivate::nameCache |
Definition at line 83 of file qdeclarativeproperty_p.h.
Referenced by QDeclarativeProperty::name().
QDeclarativeGuard<QObject> QDeclarativePropertyPrivate::object |
Definition at line 79 of file qdeclarativeproperty_p.h.
Referenced by binding(), QDeclarativeProperty::connectNotifySignal(), QDeclarativeProperty::hasNotifySignal(), QDeclarativeProperty::isDesignable(), QDeclarativeProperty::isResettable(), QDeclarativeProperty::isWritable(), QDeclarativeProperty::method(), QDeclarativeProperty::name(), QDeclarativeProperty::object(), QDeclarativeProperty::operator==(), QDeclarativeProperty::property(), QDeclarativeProperty::propertyTypeName(), QDeclarativeProperty::QDeclarativeProperty(), QDeclarativeProperty::read(), QDeclarativeProperty::reset(), restore(), setBinding(), setSignalExpression(), signalExpression(), and write().
QDeclarativePropertyCache::ValueTypeData QDeclarativePropertyPrivate::valueType |
Definition at line 86 of file qdeclarativeproperty_p.h.
Referenced by binding(), bindingIndex(), QDeclarativeProperty::name(), QDeclarativeProperty::operator==(), QDeclarativeProperty::propertyTypeName(), restore(), setBinding(), and valueTypeCoreIndex().