summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativeobjectscriptclass.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-03-04 04:49:20 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-03-04 04:49:20 (GMT)
commiteda079761194a96783cdb8d49c79eb2c9c0b7dac (patch)
tree4ca35b23b09e6c3d1d2fb11ec943c9347bb5719b /src/declarative/qml/qdeclarativeobjectscriptclass.cpp
parent4164a11032b64fe5a557515f283fa0e4c6d0260d (diff)
downloadQt-eda079761194a96783cdb8d49c79eb2c9c0b7dac.zip
Qt-eda079761194a96783cdb8d49c79eb2c9c0b7dac.tar.gz
Qt-eda079761194a96783cdb8d49c79eb2c9c0b7dac.tar.bz2
Compile without QVariant::EasingCurve in Qt 4.6.2.
Diffstat (limited to 'src/declarative/qml/qdeclarativeobjectscriptclass.cpp')
-rw-r--r--src/declarative/qml/qdeclarativeobjectscriptclass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativeobjectscriptclass.cpp b/src/declarative/qml/qdeclarativeobjectscriptclass.cpp
index 542f417..2e4ffa7 100644
--- a/src/declarative/qml/qdeclarativeobjectscriptclass.cpp
+++ b/src/declarative/qml/qdeclarativeobjectscriptclass.cpp
@@ -232,7 +232,7 @@ QDeclarativeObjectScriptClass::property(QObject *obj, const Identifier &name)
QDeclarativeEnginePrivate::CapturedProperty(obj, lastData->coreIndex, lastData->notifyIndex);
}
- if ((uint)lastData->propType < QVariant::UserType) {
+ if (QDeclarativeValueTypeFactory::isValueType((uint)lastData->propType)) {
QDeclarativeValueType *valueType = enginePriv->valueTypes[lastData->propType];
if (valueType)
return Value(scriptEngine, enginePriv->valueTypeClass->newObject(obj, lastData->coreIndex, valueType));