Qt 4.8
Public Functions | Public Variables | Properties | List of all members
QDeclarativeDelayedError Class Reference

#include <qdeclarativeexpression_p.h>

Inheritance diagram for QDeclarativeDelayedError:
QDeclarativeCompiledBindingsPrivate::Binding QDeclarativeQtScriptExpression QDeclarativeExpressionPrivate QDeclarativeBindingPrivate

Public Functions

bool addError (QDeclarativeEnginePrivate *)
 
 QDeclarativeDelayedError ()
 
void removeError ()
 
 ~QDeclarativeDelayedError ()
 

Public Variables

QDeclarativeError error
 

Properties

QDeclarativeDelayedErrornextError
 
QDeclarativeDelayedError ** prevError
 

Detailed Description

Definition at line 87 of file qdeclarativeexpression_p.h.

Constructors and Destructors

◆ QDeclarativeDelayedError()

QDeclarativeDelayedError::QDeclarativeDelayedError ( )
inline

Definition at line 90 of file qdeclarativeexpression_p.h.

90 : nextError(0), prevError(0) {}
QDeclarativeDelayedError * nextError
QDeclarativeDelayedError ** prevError

◆ ~QDeclarativeDelayedError()

QDeclarativeDelayedError::~QDeclarativeDelayedError ( )
inline

Definition at line 91 of file qdeclarativeexpression_p.h.

Functions

◆ addError()

bool QDeclarativeDelayedError::addError ( QDeclarativeEnginePrivate e)

Definition at line 58 of file qdeclarativeexpression.cpp.

Referenced by throwException().

59 {
60  if (!e) return false;
61 
62  if (e->inProgressCreations == 0) return false; // Not in construction
63 
64  if (prevError) return true; // Already in error chain
65 
68  e->erroredBindings = this;
70 
71  return true;
72 }
QDeclarativeDelayedError * nextError
QDeclarativeDelayedError ** prevError
QDeclarativeDelayedError * erroredBindings

◆ removeError()

void QDeclarativeDelayedError::removeError ( )
inline

Definition at line 97 of file qdeclarativeexpression_p.h.

Referenced by QDeclarativeComponentPrivate::complete(), and QDeclarativeCompiledBindingsPrivate::run().

97  {
98  if (!prevError) return;
100  *prevError = nextError;
101  nextError = 0;
102  prevError = 0;
103  }
QDeclarativeDelayedError * nextError
QDeclarativeDelayedError ** prevError

Properties

◆ error

QDeclarativeError QDeclarativeDelayedError::error

◆ nextError

QDeclarativeDelayedError* QDeclarativeDelayedError::nextError
private

Definition at line 106 of file qdeclarativeexpression_p.h.

Referenced by addError().

◆ prevError

QDeclarativeDelayedError** QDeclarativeDelayedError::prevError
private

Definition at line 107 of file qdeclarativeexpression_p.h.

Referenced by addError().


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