Commit b7b50eda authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS: Allow numbers to be assigned to easing.type.

Task-number: QTCREATORBUG-1439
parent 088bdb29
......@@ -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");
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment