Qt 4.8
Public Types | Public Slots | Public Functions | Static Public Functions | Static Public Variables | Protected Functions | List of all members
QDeclarativeBinding Class Reference

#include <qdeclarativebinding_p.h>

Inheritance diagram for QDeclarativeBinding:
QDeclarativeExpression QDeclarativeAbstractBinding QObject

Public Types

enum  EvaluateFlag { RequiresThisObject = 0x01 }
 
typedef int Identifier
 
- Public Types inherited from QDeclarativeAbstractBinding
enum  DestroyMode { DisconnectBinding, KeepBindingConnected }
 
enum  DisconnectMode { DisconnectOne, DisconnectAll }
 
typedef QWeakPointer< QDeclarativeAbstractBindingPointer
 
enum  Type { PropertyBinding, ValueTypeProxy }
 

Public Slots

void update ()
 
- Public Slots inherited from QObject
void deleteLater ()
 Schedules this object for deletion. More...
 

Public Functions

virtual void disconnect (DisconnectMode disconnectMode)
 
bool enabled () const
 
EvaluateFlags evaluateFlags () const
 
virtual QString expression () const
 
QDeclarativeProperty property () const
 
 QDeclarativeBinding (const QString &, QObject *, QDeclarativeContext *, QObject *parent=0)
 
 QDeclarativeBinding (const QString &, QObject *, QDeclarativeContextData *, QObject *parent=0)
 
 QDeclarativeBinding (void *, QDeclarativeRefCount *, QObject *, QDeclarativeContextData *, const QString &, int, QObject *parent)
 
 QDeclarativeBinding (const QScriptValue &, QObject *, QDeclarativeContextData *, QObject *parent=0)
 
virtual void setEnabled (bool, QDeclarativePropertyPrivate::WriteFlags flags)
 
void setEvaluateFlags (EvaluateFlags flags)
 
void setTarget (const QDeclarativeProperty &)
 
virtual void update (QDeclarativePropertyPrivate::WriteFlags flags)
 
- Public Functions inherited from QDeclarativeExpression
void clearError ()
 Clear any expression errors. More...
 
QDeclarativeContextcontext () const
 Returns the QDeclarativeContext this expression is associated with, or 0 if there is no association or the QDeclarativeContext has been destroyed. More...
 
QDeclarativeEngineengine () const
 Returns the QDeclarativeEngine this expression is associated with, or 0 if there is no association or the QDeclarativeEngine has been destroyed. More...
 
QDeclarativeError error () const
 Return any error from the last call to evaluate(). More...
 
QVariant evaluate (bool *valueIsUndefined=0)
 Evaulates the expression, returning the result of the evaluation, or an invalid QVariant if the expression is invalid or has an error. More...
 
QString expression () const
 Returns the expression string. More...
 
bool hasError () const
 Returns true if the last call to evaluate() resulted in an error, otherwise false. More...
 
int lineNumber () const
 Returns the source file line number for this expression. More...
 
bool notifyOnValueChanged () const
 Returns true if the valueChanged() signal is emitted when the expression's evaluated value changes. More...
 
 QDeclarativeExpression ()
 Create an invalid QDeclarativeExpression. More...
 
 QDeclarativeExpression (QDeclarativeContext *, QObject *, const QString &, QObject *=0)
 Create a QDeclarativeExpression object that is a child of parent. More...
 
QObjectscopeObject () const
 Returns the expression's scope object, if provided, otherwise 0. More...
 
void setExpression (const QString &)
 Set the expression to expression. More...
 
void setNotifyOnValueChanged (bool)
 Sets whether the valueChanged() signal is emitted when the expression's evaluated value changes. More...
 
void setSourceLocation (const QString &fileName, int line)
 Set the location of this expression to line of url. More...
 
QString sourceFile () const
 Returns the source file URL for this expression. More...
 
virtual ~QDeclarativeExpression ()
 Destroy the QDeclarativeExpression instance. More...
 
- Public Functions inherited from QObject
bool blockSignals (bool b)
 If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). More...
 
const QObjectListchildren () const
 Returns a list of child objects. More...
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectInfo ()
 Dumps information about signal connections, etc. More...
 
void dumpObjectTree ()
 Dumps a tree of children to the debug output. More...
 
QList< QByteArraydynamicPropertyNames () const
 Returns the names of all properties that were dynamically added to the object using setProperty(). More...
 
virtual bool event (QEvent *)
 This virtual function receives events to an object and should return true if the event e was recognized and processed. More...
 
virtual bool eventFilter (QObject *, QEvent *)
 Filters events if this object has been installed as an event filter for the watched object. More...
 
template<typename T >
findChild (const QString &aName=QString()) const
 Returns the child of this object that can be cast into type T and that is called name, or 0 if there is no such object. More...
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. More...
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
bool inherits (const char *classname) const
 Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false. More...
 
void installEventFilter (QObject *)
 Installs an event filter filterObj on this object. More...
 
bool isWidgetType () const
 Returns true if the object is a widget; otherwise returns false. More...
 
void killTimer (int id)
 Kills the timer with timer identifier, id. More...
 
virtual const QMetaObjectmetaObject () const
 Returns a pointer to the meta-object of this object. More...
 
void moveToThread (QThread *thread)
 Changes the thread affinity for this object and its children. More...
 
QString objectName () const
 
QObjectparent () const
 Returns a pointer to the parent object. More...
 
QVariant property (const char *name) const
 Returns the value of the object's name property. More...
 
Q_INVOKABLE QObject (QObject *parent=0)
 Constructs an object with parent object parent. More...
 
void removeEventFilter (QObject *)
 Removes an event filter object obj from this object. More...
 
void setObjectName (const QString &name)
 
void setParent (QObject *)
 Makes the object a child of parent. More...
 
bool setProperty (const char *name, const QVariant &value)
 Sets the value of the object's name property to value. More...
 
void setUserData (uint id, QObjectUserData *data)
 
bool signalsBlocked () const
 Returns true if signals are blocked; otherwise returns false. More...
 
int startTimer (int interval)
 Starts a timer and returns a timer identifier, or returns zero if it could not start a timer. More...
 
QThreadthread () const
 Returns the thread in which the object lives. More...
 
QObjectUserDatauserData (uint id) const
 
virtual ~QObject ()
 Destroys the object, deleting all its child objects. More...
 
- Public Functions inherited from QDeclarativeAbstractBinding
void addToObject (QObject *, int)
 Add this binding to object. More...
 
virtual Type bindingType () const
 
virtual void destroy (DestroyMode mode=DisconnectBinding)
 Destroy the binding. More...
 
QObjectobject () const
 
int propertyIndex () const
 
 QDeclarativeAbstractBinding ()
 
void removeFromObject ()
 Remove the binding from the object. More...
 
void setEnabled (bool e)
 
void update ()
 

Static Public Functions

static QDeclarativeBindingcreateBinding (Identifier, QObject *, QDeclarativeContext *, const QString &, int, QObject *parent=0)
 
- Static Public Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 Creates a connection of the given type from the signal in the sender object to the method in the receiver object. More...
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 Disconnects signal in object sender from method in object receiver. More...
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
static QString tr (const char *sourceText, const char *comment=0, int n=-1)
 
static QString trUtf8 (const char *sourceText, const char *comment=0, int n=-1)
 
- Static Public Functions inherited from QDeclarativeAbstractBinding
static Pointer getPointer (QDeclarativeAbstractBinding *p)
 

Static Public Variables

static Identifier Invalid = -1
 
- Static Public Variables inherited from QObject
static const QMetaObject staticMetaObject
 This variable stores the meta-object for the class. More...
 

Protected Functions

void emitValueChanged ()
 
 ~QDeclarativeBinding ()
 
- Protected Functions inherited from QDeclarativeExpression
 QDeclarativeExpression (QDeclarativeContextData *, QObject *, const QString &, QDeclarativeExpressionPrivate &dd)
 
 QDeclarativeExpression (QDeclarativeContextData *, QObject *, const QScriptValue &, QDeclarativeExpressionPrivate &dd)
 
 QDeclarativeExpression (QDeclarativeContextData *, void *, QDeclarativeRefCount *rc, QObject *me, const QString &, int, QDeclarativeExpressionPrivate &dd)
 
- Protected Functions inherited from QObject
virtual void childEvent (QChildEvent *)
 This event handler can be reimplemented in a subclass to receive child events. More...
 
virtual void connectNotify (const char *signal)
 This virtual function is called when something has been connected to signal in this object. More...
 
virtual void customEvent (QEvent *)
 This event handler can be reimplemented in a subclass to receive custom events. More...
 
virtual void disconnectNotify (const char *signal)
 This virtual function is called when something has been disconnected from signal in this object. More...
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 
int receivers (const char *signal) const
 Returns the number of receivers connected to the signal. More...
 
QObjectsender () const
 Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns 0. More...
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *)
 This event handler can be reimplemented in a subclass to receive timer events for the object. More...
 
- Protected Functions inherited from QDeclarativeAbstractBinding
void clear ()
 
virtual ~QDeclarativeAbstractBinding ()
 

Additional Inherited Members

- Signals inherited from QDeclarativeExpression
void valueChanged ()
 Emitted each time the expression value changes from the last time it was evaluated. More...
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 This signal is emitted immediately before the object obj is destroyed, and can not be blocked. More...
 
- Protected Variables inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Variables inherited from QObject
static const QMetaObject staticQtMetaObject
 

Detailed Description

Definition at line 176 of file qdeclarativebinding_p.h.

Typedefs

◆ Identifier

Definition at line 203 of file qdeclarativebinding_p.h.

Enumerations

◆ EvaluateFlag

Enumerator
RequiresThisObject 

Definition at line 180 of file qdeclarativebinding_p.h.

Constructors and Destructors

◆ QDeclarativeBinding() [1/4]

QDeclarativeBinding::QDeclarativeBinding ( const QString str,
QObject obj,
QDeclarativeContext ctxt,
QObject parent = 0 
)

Definition at line 267 of file qdeclarativebinding.cpp.

Referenced by createBinding().

270 {
271  setParent(parent);
273 }
QDeclarativeExpression()
Create an invalid QDeclarativeExpression.
void setNotifyOnValueChanged(bool)
Sets whether the valueChanged() signal is emitted when the expression&#39;s evaluated value changes...
void setParent(QObject *)
Makes the object a child of parent.
Definition: qobject.cpp:1950
static QDeclarativeContextData * get(QDeclarativeContext *context)

◆ QDeclarativeBinding() [2/4]

QDeclarativeBinding::QDeclarativeBinding ( const QString str,
QObject obj,
QDeclarativeContextData ctxt,
QObject parent = 0 
)

Definition at line 275 of file qdeclarativebinding.cpp.

278 {
279  setParent(parent);
281 }
QDeclarativeExpression()
Create an invalid QDeclarativeExpression.
void setNotifyOnValueChanged(bool)
Sets whether the valueChanged() signal is emitted when the expression&#39;s evaluated value changes...
void setParent(QObject *)
Makes the object a child of parent.
Definition: qobject.cpp:1950

◆ QDeclarativeBinding() [3/4]

QDeclarativeBinding::QDeclarativeBinding ( void *  data,
QDeclarativeRefCount rc,
QObject obj,
QDeclarativeContextData ctxt,
const QString url,
int  lineNumber,
QObject parent 
)

Definition at line 233 of file qdeclarativebinding.cpp.

237 {
238  setParent(parent);
240 }
QDeclarativeExpression()
Create an invalid QDeclarativeExpression.
void setNotifyOnValueChanged(bool)
Sets whether the valueChanged() signal is emitted when the expression&#39;s evaluated value changes...
void setParent(QObject *)
Makes the object a child of parent.
Definition: qobject.cpp:1950
static const char * data(const QByteArray &arr)
int lineNumber() const
Returns the source file line number for this expression.

◆ QDeclarativeBinding() [4/4]

QDeclarativeBinding::QDeclarativeBinding ( const QScriptValue func,
QObject obj,
QDeclarativeContextData ctxt,
QObject parent = 0 
)

Definition at line 283 of file qdeclarativebinding.cpp.

284 : QDeclarativeExpression(ctxt, obj, func, *new QDeclarativeBindingPrivate)
285 {
286  setParent(parent);
288 }
QDeclarativeExpression()
Create an invalid QDeclarativeExpression.
void setNotifyOnValueChanged(bool)
Sets whether the valueChanged() signal is emitted when the expression&#39;s evaluated value changes...
void setParent(QObject *)
Makes the object a child of parent.
Definition: qobject.cpp:1950

◆ ~QDeclarativeBinding()

QDeclarativeBinding::~QDeclarativeBinding ( )
protected

Definition at line 290 of file qdeclarativebinding.cpp.

291 {
292 }

Functions

◆ createBinding()

QDeclarativeBinding * QDeclarativeBinding::createBinding ( Identifier  id,
QObject obj,
QDeclarativeContext ctxt,
const QString url,
int  lineNumber,
QObject parent = 0 
)
static

Definition at line 243 of file qdeclarativebinding.cpp.

Referenced by QDeclarativePropertyChanges::actions().

245 {
246  if (id < 0)
247  return 0;
248 
249  Q_ASSERT(ctxt);
251 
253  QDeclarativeCompiledData *cdata = 0;
254  QDeclarativeTypeData *typeData = 0;
255  if (!ctxtdata->url.isEmpty()) {
256  typeData = engine->typeLoader.get(ctxtdata->url);
257  cdata = typeData->compiledData();
258  }
259  QDeclarativeBinding *rv = cdata ? new QDeclarativeBinding((void*)cdata->datas.at(id).constData(), cdata, obj, ctxtdata, url, lineNumber, parent) : 0;
260  if (cdata)
261  cdata->release();
262  if (typeData)
263  typeData->release();
264  return rv;
265 }
QDeclarativeEngine * engine
QDeclarativeEngine * engine() const
Returns the QDeclarativeEngine this expression is associated with, or 0 if there is no association or...
bool isEmpty() const
Returns true if the URL has no data; otherwise returns false.
Definition: qurl.cpp:4317
QDeclarativeCompiledData * compiledData() const
QDeclarativeTypeLoader typeLoader
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
static QDeclarativeEnginePrivate * get(QDeclarativeEngine *e)
QDeclarativeBinding(const QString &, QObject *, QDeclarativeContext *, QObject *parent=0)
const T & at(int i) const
Returns the item at index position i in the list.
Definition: qlist.h:468
const char * constData() const
Returns a pointer to the data stored in the byte array.
Definition: qbytearray.h:433
int lineNumber() const
Returns the source file line number for this expression.
QObject * parent() const
Returns a pointer to the parent object.
Definition: qobject.h:273
QDeclarativeTypeData * get(const QUrl &url)
Returns a QDeclarativeTypeData for the specified url.
static QDeclarativeContextData * get(QDeclarativeContext *context)

◆ disconnect()

void QDeclarativeBinding::disconnect ( DisconnectMode  disconnectMode)
virtual

Implements QDeclarativeAbstractBinding.

Definition at line 494 of file qdeclarativebinding.cpp.

495 {
496  Q_UNUSED(disconnectMode);
498 }
void setNotifyOnValueChanged(bool)
Sets whether the valueChanged() signal is emitted when the expression&#39;s evaluated value changes...
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ emitValueChanged()

void QDeclarativeBinding::emitValueChanged ( )
protected

◆ enabled()

bool QDeclarativeBinding::enabled ( ) const

Definition at line 482 of file qdeclarativebinding.cpp.

483 {
484  Q_D(const QDeclarativeBinding);
485 
486  return d->enabled;
487 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482

◆ evaluateFlags()

QDeclarativeBinding::EvaluateFlags QDeclarativeBinding::evaluateFlags ( ) const

Definition at line 314 of file qdeclarativebinding.cpp.

Referenced by QDeclarativeValueTypeScriptClass::setProperty(), and QDeclarativeObjectScriptClass::setProperty().

315 {
316  Q_D(const QDeclarativeBinding);
317  return QDeclarativeBinding::EvaluateFlags(static_cast<int>(d->evaluateFlags()));
318 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482

◆ expression()

QString QDeclarativeBinding::expression ( ) const
virtual

◆ property()

QDeclarativeProperty QDeclarativeBinding::property ( ) const

Definition at line 302 of file qdeclarativebinding.cpp.

Referenced by QDeclarativeParentChange::actions().

303 {
304  Q_D(const QDeclarativeBinding);
305  return d->property;
306 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482

◆ setEnabled()

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

Implements QDeclarativeAbstractBinding.

Definition at line 472 of file qdeclarativebinding.cpp.

473 {
475  d->enabled = e;
477 
478  if (e)
479  update(flags);
480 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482
void setNotifyOnValueChanged(bool)
Sets whether the valueChanged() signal is emitted when the expression&#39;s evaluated value changes...

◆ setEvaluateFlags()

void QDeclarativeBinding::setEvaluateFlags ( EvaluateFlags  flags)

Definition at line 308 of file qdeclarativebinding.cpp.

Referenced by QDeclarativeValueTypeScriptClass::setProperty(), and QDeclarativeObjectScriptClass::setProperty().

309 {
311  d->setEvaluateFlags(QDeclarativeQtScriptExpression::EvaluateFlags(static_cast<int>(flags)));
312 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482

◆ setTarget()

void QDeclarativeBinding::setTarget ( const QDeclarativeProperty prop)

◆ update() [1/2]

void QDeclarativeBinding::update ( QDeclarativePropertyPrivate::WriteFlags  flags)
virtual

Implements QDeclarativeAbstractBinding.

Definition at line 336 of file qdeclarativebinding.cpp.

Referenced by QDeclarativeEngineDebugService::setBinding().

337 {
339 
340  if (!d->enabled || !d->context() || !d->context()->isValid())
341  return;
342 
343  if (!d->updating) {
344  QDeclarativeBindingProfiler prof(this);
345  d->updating = true;
346  bool wasDeleted = false;
347  d->deleted = &wasDeleted;
348 
349  if (d->property.propertyType() == qMetaTypeId<QDeclarativeBinding *>()) {
350 
351  int idx = d->property.index();
352  Q_ASSERT(idx != -1);
353 
354  QDeclarativeBinding *t = this;
355  int status = -1;
356  void *a[] = { &t, 0, &status, &flags };
357  QMetaObject::metacall(d->property.object(),
359  idx, a);
360 
361  if (wasDeleted)
362  return;
363 
364  } else {
366 
367  bool isUndefined = false;
368  QVariant value;
369 
370  QScriptValue scriptValue = d->scriptValue(0, &isUndefined);
371  if (wasDeleted)
372  return;
373 
374  if (d->property.propertyTypeCategory() == QDeclarativeProperty::List) {
375  value = ep->scriptValueToVariant(scriptValue, qMetaTypeId<QList<QObject *> >());
376  } else if (scriptValue.isNull() &&
377  d->property.propertyTypeCategory() == QDeclarativeProperty::Object) {
378  value = QVariant::fromValue((QObject *)0);
379  } else {
380  value = ep->scriptValueToVariant(scriptValue, d->property.propertyType());
381  if (value.userType() == QMetaType::QObjectStar && !qvariant_cast<QObject*>(value)) {
382  // If the object is null, we extract the predicted type. While this isn't
383  // 100% reliable, in many cases it gives us better error messages if we
384  // assign this null-object to an incompatible property
385  int type = ep->objectClass->objectType(scriptValue);
386  QObject *o = 0;
387  value = QVariant(type, (void *)&o);
388  }
389  }
390 
391 
392  if (d->error.isValid()) {
393 
394  } else if (isUndefined && d->property.isResettable()) {
395 
396  d->property.reset();
397 
398  } else if (isUndefined && d->property.propertyType() == qMetaTypeId<QVariant>()) {
399 
400  QDeclarativePropertyPrivate::write(d->property, QVariant(), flags);
401 
402  } else if (isUndefined) {
403 
404  QUrl url = QUrl(d->url);
405  int line = d->line;
406  if (url.isEmpty()) url = QUrl(QLatin1String("<Unknown File>"));
407 
408  d->error.setUrl(url);
409  d->error.setLine(line);
410  d->error.setColumn(-1);
411  d->error.setDescription(QLatin1String("Unable to assign [undefined] to ") +
412  QLatin1String(QMetaType::typeName(d->property.propertyType())) +
413  QLatin1String(" ") + d->property.name());
414 
415  } else if (!scriptValue.isRegExp() && scriptValue.isFunction()) {
416 
417  QUrl url = QUrl(d->url);
418  int line = d->line;
419  if (url.isEmpty()) url = QUrl(QLatin1String("<Unknown File>"));
420 
421  d->error.setUrl(url);
422  d->error.setLine(line);
423  d->error.setColumn(-1);
424  d->error.setDescription(QLatin1String("Unable to assign a function to a property."));
425 
426  } else if (d->property.object() &&
427  !QDeclarativePropertyPrivate::write(d->property, value, flags)) {
428 
429  if (wasDeleted)
430  return;
431 
432  QUrl url = QUrl(d->url);
433  int line = d->line;
434  if (url.isEmpty()) url = QUrl(QLatin1String("<Unknown File>"));
435 
436  const char *valueType = 0;
437  if (value.userType() == QVariant::Invalid) valueType = "null";
438  else valueType = QMetaType::typeName(value.userType());
439 
440  d->error.setUrl(url);
441  d->error.setLine(line);
442  d->error.setColumn(-1);
443  d->error.setDescription(QLatin1String("Unable to assign ") +
444  QLatin1String(valueType) +
445  QLatin1String(" to ") +
446  QLatin1String(QMetaType::typeName(d->property.propertyType())));
447  }
448 
449  if (wasDeleted)
450  return;
451 
452  if (d->error.isValid()) {
453  if (!d->addError(ep)) ep->warning(this->error());
454  } else {
455  d->removeError();
456  }
457  }
458 
459  d->updating = false;
460  d->deleted = 0;
461  } else {
462  qmlInfo(d->property.object()) << tr("Binding loop detected for property \"%1\"").arg(d->property.name());
463  }
464 }
The QVariant class acts like a union for the most common Qt data types.
Definition: qvariant.h:92
double d
Definition: qnumeric_p.h:62
bool isNull() const
Returns true if this QScriptValue is of the primitive type Null; otherwise returns false...
int type
Definition: qmetatype.cpp:239
bool isFunction() const
Returns true if this QScriptValue is a function; otherwise returns false.
static int metacall(QObject *, Call, int, void **)
bool isEmpty() const
Returns true if the URL has no data; otherwise returns false.
Definition: qurl.cpp:4317
int qMetaTypeId()
Definition: qmetatype.h:224
static LibLoadStatus status
Definition: qlocale_icu.cpp:69
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
long ASN1_INTEGER_get ASN1_INTEGER * a
The QUrl class provides a convenient interface for working with URLs.
Definition: qurl.h:61
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
The QObject class is the base class of all Qt objects.
Definition: qobject.h:111
#define Q_D(Class)
Definition: qglobal.h:2482
static QDeclarativeEnginePrivate * get(QDeclarativeEngine *e)
QVariant scriptValueToVariant(const QScriptValue &, int hint=QVariant::Invalid)
static QVariant fromValue(const T &value)
Returns a QVariant containing a copy of value.
Definition: qvariant.h:336
QDeclarativeObjectScriptClass * objectClass
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
Definition: qstring.cpp:7186
int userType() const
Returns the storage type of the value stored in the variant.
Definition: qvariant.cpp:1913
int objectType(const QScriptValue &) const
bool isRegExp() const
Returns true if this QScriptValue is an object of the RegExp class; otherwise returns false...
static const char * typeName(int type)
Returns the type name associated with the given type, or 0 if no matching type was found...
Definition: qmetatype.cpp:406
T qvariant_cast(const QVariant &)
Definition: qvariant.h:571
QDeclarativeInfo qmlInfo(const QObject *me)
void warning(const QDeclarativeError &)
The QScriptValue class acts as a container for the Qt Script data types.
Definition: qscriptvalue.h:57
The QList class is a template class that provides lists.
Definition: qdatastream.h:62
static bool write(QObject *, const QDeclarativePropertyCache::Data &, const QVariant &, QDeclarativeContextData *, WriteFlags flags=0)

◆ update [2/2]

void QDeclarativeBinding::update ( )
inlineslot

Properties

◆ Invalid

QDeclarativeBinding::Identifier QDeclarativeBinding::Invalid = -1
static

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