Fix warning

Change-Id: I646cf0d1c1e7dec7f44baf50a586ff22044cb7f0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Thomas Hartmann
2019-01-18 10:07:49 +01:00
parent 79e75a8fda
commit b6868f2316

View File

@@ -1646,7 +1646,7 @@ bool Check::visit(CallExpression *ast)
// allow adding connections with the help of the qt quick designer ui
bool isDirectInConnectionsScope =
(!m_typeStack.isEmpty() && m_typeStack.last() == QLatin1String("Connections"));
if (!whiteListedFunction && !isMathFunction && !isDirectInConnectionsScope)
if (!whiteListedFunction && !isMathFunction && !isDateFunction && !isDirectInConnectionsScope)
addMessage(ErrFunctionsNotSupportedInQmlUi, location);
static const QStringList globalFunctions = {"String", "Boolean", "Date", "Number", "Object", "QT_TR_NOOP", "QT_TRANSLATE_NOOP", "QT_TRID_NOOP"};