summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2010-03-04 15:51:37 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2010-03-04 15:51:37 (GMT)
commit2701b8389eb9cfbdd65b87b00e5406187c57b297 (patch)
treeae57aed7ced36586c69433cdd01e5cd098b9a9ae /src/declarative/qml
parent48edd0b663b29413452389c906487cc9b0408b29 (diff)
downloadQt-2701b8389eb9cfbdd65b87b00e5406187c57b297.zip
Qt-2701b8389eb9cfbdd65b87b00e5406187c57b297.tar.gz
Qt-2701b8389eb9cfbdd65b87b00e5406187c57b297.tar.bz2
Compile fix for wince
Reviewed-by: Leo Cunha
Diffstat (limited to 'src/declarative/qml')
-rw-r--r--src/declarative/qml/qdeclarativeengine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/qml/qdeclarativeengine.cpp b/src/declarative/qml/qdeclarativeengine.cpp
index 1711cf1..7ce2d0b 100644
--- a/src/declarative/qml/qdeclarativeengine.cpp
+++ b/src/declarative/qml/qdeclarativeengine.cpp
@@ -953,7 +953,7 @@ QScriptValue QDeclarativeEnginePrivate::formatDate(QScriptContext*ctxt, QScriptE
QString format = ctxt->argument(1).toString();
return engine->newVariant(qVariantFromValue(date.toString(format)));
} else if (ctxt->argument(1).isNumber()) {
- enumFormat = Qt::DateFormat(ctxt->argument(1).toInteger());
+ enumFormat = Qt::DateFormat(ctxt->argument(1).toUInt32());
} else
return engine->nullValue();
}
@@ -973,7 +973,7 @@ QScriptValue QDeclarativeEnginePrivate::formatTime(QScriptContext*ctxt, QScriptE
QString format = ctxt->argument(1).toString();
return engine->newVariant(qVariantFromValue(date.toString(format)));
} else if (ctxt->argument(1).isNumber()) {
- enumFormat = Qt::DateFormat(ctxt->argument(1).toInteger());
+ enumFormat = Qt::DateFormat(ctxt->argument(1).toUInt32());
} else
return engine->nullValue();
}
@@ -993,7 +993,7 @@ QScriptValue QDeclarativeEnginePrivate::formatDateTime(QScriptContext*ctxt, QScr
QString format = ctxt->argument(1).toString();
return engine->newVariant(qVariantFromValue(date.toString(format)));
} else if (ctxt->argument(1).isNumber()) {
- enumFormat = Qt::DateFormat(ctxt->argument(1).toInteger());
+ enumFormat = Qt::DateFormat(ctxt->argument(1).toUInt32());
} else
return engine->nullValue();
}