42 #include "private/qdeclarativeconnections_p.h" 51 #include <QtCore/qdebug.h> 52 #include <QtCore/qstringlist.h> 54 #include <private/qobject_p.h> 157 return d->targetSet ?
d->target :
parent();
164 if (
d->target == obj)
174 d->boundsignals.clear();
195 return d->ignoreUnknownSignals;
201 d->ignoreUnknownSignals =
ignore;
212 for(
int ii = 0; ii < props.
count(); ++ii)
222 for (
int i = 0; i < values.
count(); ++i) {
225 if (value.
userType() == qMetaTypeId<QDeclarativeCustomParserNode>()) {
228 }
else if (value.
userType() == qMetaTypeId<QDeclarativeCustomParserProperty>()) {
259 if (!
d->componentcomplete || (
d->targetSet && !
target()))
263 while (!ds.
atEnd()) {
277 d->boundsignals += signal;
279 if (!
d->ignoreUnknownSignals)
280 qmlInfo(
this) <<
tr(
"Cannot assign to non-existent property \"%1\"").
arg(propName);
288 d->componentcomplete=
false;
294 d->componentcomplete=
true;
QDeclarativeContextData * outerContext
The QVariant class acts like a union for the most common Qt data types.
static QDeclarativeData * get(const QObject *object, bool create=false)
QList< QDeclarativeBoundSignal * > boundsignals
bool ignoreUnknownSignals
#define QT_END_NAMESPACE
This macro expands to.
QDeclarativeParserStatus ** d
const QChar at(int i) const
Returns the character at the given index position in the string.
QString toString(FormattingOptions options=None) const
Returns the human-displayable string representation of the URL.
~QDeclarativeConnections()
bool atEnd() const
Returns true if the I/O device has reached the end position (end of the stream or file) or if there i...
The QByteArray class provides an array of bytes.
bool isEmpty() const
Returns true if the URL has no data; otherwise returns false.
QList< QVariant > assignedValues() const
static bool ignore(const char *test, const char *const *table)
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
int count(const T &t) const
Returns the number of occurrences of value in the list.
Type type() const
Returns the type of the property.
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
Q_DECLARATIVE_EXPORT QDeclarativeContext * qmlContext(const QObject *)
bool isValid() const
Returns true if the QDeclarativeProperty refers to a valid property, otherwise false.
static QObjectPrivate * get(QObject *o)
void componentComplete()
Invoked after the root component that caused this instantiation has completed construction.
void classBegin()
Invoked after class creation, but before any properties have been set.
bool isEvaluating() const
QDeclarativeExpression * setExpression(QDeclarativeExpression *)
Sets the signal expression to e.
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual void setCustomData(QObject *, const QByteArray &)
QMetaMethod method() const
Return the QMetaMethod for this property if it is a SignalProperty, otherwise returns an invalid QMet...
const T & at(int i) const
Returns the item at index position i in the list.
static QString fromUtf8(const char *, int size=-1)
Returns a QString initialized with the first size bytes of the UTF-8 string str.
static const char * data(const QByteArray &arr)
bool ignoreUnknownSignals() const
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
QDeclarativeConnections(QObject *parent=0)
void setIgnoreUnknownSignals(bool ignore)
virtual QByteArray compile(const QList< QDeclarativeCustomParserProperty > &)
void setTarget(QObject *)
Q_CORE_EXPORT int QT_FASTCALL script(uint ucs4)
bool isUpper() const
Returns true if the character is an uppercase letter, i.
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
int userType() const
Returns the storage type of the value stored in the variant.
QObject * parent() const
Returns a pointer to the parent object.
T qvariant_cast(const QVariant &)
The QDeclarativeProperty class abstracts accessing properties on objects created from QML...
The QDataStream class provides serialization of binary data to a QIODevice.
The QDeclarativeExpression class evaluates JavaScript in a QML context.
QDeclarativeInfo qmlInfo(const QObject *me)
void deleteLater()
Schedules this object for deletion.
QDeclarativeConnectionsPrivate()
The QList class is a template class that provides lists.