aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qmljs/qmljsvalueowner.cpp
diff options
context:
space:
mode:
authorFawzi Mohamed <fawzi.mohamed@digia.com>2014-08-20 16:40:58 +0200
committerFawzi Mohamed <fawzi.mohamed@digia.com>2014-08-21 12:37:05 +0200
commit058507d37eb32e130d2831e08f1f5fd4d4c96a7c (patch)
tree839a8b234205745bf06bf04d56908e1a02193e47 /src/libs/qmljs/qmljsvalueowner.cpp
parentc31b5c40913bebeb8fa35deb97943b49bab5429b (diff)
qmljs: adding getDay and getUTCDay to date object
Change-Id: Ib7a15a7e3803656b2091e25a12a7fd13000553ab Reviewed-by: Eike Ziller <eike.ziller@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'src/libs/qmljs/qmljsvalueowner.cpp')
-rw-r--r--src/libs/qmljs/qmljsvalueowner.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/qmljs/qmljsvalueowner.cpp b/src/libs/qmljs/qmljsvalueowner.cpp
index 644b0c09ed..41cd4b2121 100644
--- a/src/libs/qmljs/qmljsvalueowner.cpp
+++ b/src/libs/qmljs/qmljsvalueowner.cpp
@@ -365,6 +365,8 @@ SharedValueOwner::SharedValueOwner(SharedValueOwnerKind kind)
addFunction(_datePrototype, QLatin1String("getTime"), numberValue(), 0);
addFunction(_datePrototype, QLatin1String("getFullYear"), numberValue(), 0);
addFunction(_datePrototype, QLatin1String("getUTCFullYear"), numberValue(), 0);
+ addFunction(_datePrototype, QLatin1String("getDay"), numberValue(), 0);
+ addFunction(_datePrototype, QLatin1String("getUTCDay"), numberValue(), 0);
addFunction(_datePrototype, QLatin1String("getMonth"), numberValue(), 0);
addFunction(_datePrototype, QLatin1String("getUTCMonth"), numberValue(), 0);
addFunction(_datePrototype, QLatin1String("getDate"), numberValue(), 0);