diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2019-01-18 10:07:49 +0100 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2019-01-18 09:21:57 +0000 |
commit | b6868f2316374f9071de59df7244cfb27d2f3a30 (patch) | |
tree | 5e946657cca35774e3f09cdbbddbab39c5222f4e /src | |
parent | 79e75a8fda8de5150408dd8e30099091200ae6bc (diff) | |
download | qt-creator-b6868f2316374f9071de59df7244cfb27d2f3a30.tar.gz |
Fix warning
Change-Id: I646cf0d1c1e7dec7f44baf50a586ff22044cb7f0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/libs/qmljs/qmljscheck.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/qmljs/qmljscheck.cpp b/src/libs/qmljs/qmljscheck.cpp index b96b8b7d96..3a58bffd39 100644 --- a/src/libs/qmljs/qmljscheck.cpp +++ b/src/libs/qmljs/qmljscheck.cpp @@ -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"}; |