From 30dce0e5810cd312f9c483e13c3fc852f43b551d Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Fri, 17 Jun 2011 17:11:13 +1000 Subject: Compare QDeclarativeProperty's in a flag agnostic way --- src/declarative/qml/qdeclarativeproperty.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/declarative/qml/qdeclarativeproperty.cpp b/src/declarative/qml/qdeclarativeproperty.cpp index 213403d006..71bc748be9 100644 --- a/src/declarative/qml/qdeclarativeproperty.cpp +++ b/src/declarative/qml/qdeclarativeproperty.cpp @@ -420,8 +420,9 @@ bool QDeclarativeProperty::operator==(const QDeclarativeProperty &other) const // category is intentially omitted here as it is generated // from the other members return d->object == other.d->object && - d->core == other.d->core && - d->valueType == other.d->valueType; + d->core.coreIndex == other.d->core.coreIndex && + d->valueType.valueTypeCoreIdx == other.d->valueType.valueTypeCoreIdx && + d->valueType.valueTypePropType == other.d->valueType.valueTypePropType; } /*! -- cgit v1.2.3