aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qmljs/qmljscheck.cpp
diff options
context:
space:
mode:
authorChristian Kamm <[email protected]>2010-05-19 11:21:01 +0200
committerChristian Kamm <[email protected]>2010-05-19 11:21:01 +0200
commitb7b50edad5e9320c0f9317d6ad982f9357cac6a7 (patch)
tree7a8c2e456d4e66b234b465c6073ec57991a549b1 /src/libs/qmljs/qmljscheck.cpp
parent088bdb29db87571963e0fab6ff98a6f023c55f0e (diff)
QmlJS: Allow numbers to be assigned to easing.type.
Task-number: QTCREATORBUG-1439
Diffstat (limited to 'src/libs/qmljs/qmljscheck.cpp')
-rw-r--r--src/libs/qmljs/qmljscheck.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/qmljs/qmljscheck.cpp b/src/libs/qmljs/qmljscheck.cpp
index 91a1adedd5a..eeefa2a84e4 100644
--- a/src/libs/qmljs/qmljscheck.cpp
+++ b/src/libs/qmljs/qmljscheck.cpp
@@ -108,8 +108,8 @@ public:
} else if (_rhsValue->asUndefinedValue()) {
_message.kind = DiagnosticMessage::Warning;
_message.message = QCoreApplication::translate("QmlJS::Check", "value might be 'undefined'");
- } else if (! _rhsValue->asStringValue()) {
- _message.message = QCoreApplication::translate("QmlJS::Check", "easing-curve name is not a string");
+ } else if (! _rhsValue->asStringValue() && ! _rhsValue->asNumberValue()) {
+ _message.message = QCoreApplication::translate("QmlJS::Check", "easing-curve name is not a string or number");
}
}