summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativecompiler.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-03-29 04:47:53 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-03-29 04:48:58 (GMT)
commitd6817c59b664b1ce08e45bed902f17b58160a30f (patch)
tree8a0c8736a0c26446756976f8dfd1212345ab847e /src/declarative/qml/qdeclarativecompiler.cpp
parente3ec89ed31439a83c10a2fc2d770283f4f10f31a (diff)
downloadQt-d6817c59b664b1ce08e45bed902f17b58160a30f.zip
Qt-d6817c59b664b1ce08e45bed902f17b58160a30f.tar.gz
Qt-d6817c59b664b1ce08e45bed902f17b58160a30f.tar.bz2
Use QDateTime when specifying a "date" property in QML
QT-718
Diffstat (limited to 'src/declarative/qml/qdeclarativecompiler.cpp')
-rw-r--r--src/declarative/qml/qdeclarativecompiler.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativecompiler.cpp b/src/declarative/qml/qdeclarativecompiler.cpp
index a9d90f3..f1a673f 100644
--- a/src/declarative/qml/qdeclarativecompiler.cpp
+++ b/src/declarative/qml/qdeclarativecompiler.cpp
@@ -2428,10 +2428,18 @@ bool QDeclarativeCompiler::buildDynamicMeta(QDeclarativeParser::Object *obj, Dyn
propertyType = QVariant::Color;
type = "QColor";
break;
+ case Object::DynamicProperty::Time:
+ propertyType = QVariant::Time;
+ type = "QTime";
+ break;
case Object::DynamicProperty::Date:
propertyType = QVariant::Date;
type = "QDate";
break;
+ case Object::DynamicProperty::DateTime:
+ propertyType = QVariant::DateTime;
+ type = "QDateTime";
+ break;
}
((QDeclarativeVMEMetaData *)dynamicData.data())->propertyCount++;