diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-08-20 13:11:51 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-08-21 11:02:44 +0200 |
commit | 4f9e04eaf2f8a441a374ed616bfafe8796e6ad78 (patch) | |
tree | 1f498b8b2b4e528c0be4ead92835776a59f325ca | |
parent | 4268258b8d3ea302809c5aa5713ae9570f1739fb (diff) |
Postpone the deprecation warning for Connections onFoo until 5.15
Fixes: QTBUG-77734
Change-Id: I5c666d0aa9ec41f3d9bfcb78869b98336ede557b
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Liang Qi <liang.qi@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
-rw-r--r-- | src/qml/types/qqmlconnections.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/types/qqmlconnections.cpp b/src/qml/types/qqmlconnections.cpp index 14aadb6c86..25f95d6c93 100644 --- a/src/qml/types/qqmlconnections.cpp +++ b/src/qml/types/qqmlconnections.cpp @@ -274,8 +274,10 @@ void QQmlConnections::connectSignals() if (d->bindings.isEmpty()) { connectSignalsToMethods(); } else { +#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) qmlWarning(this) << tr("Implicitly defined onFoo properties in Connections are deprecated. " "Use this syntax instead: function onFoo(<arguments>) { ... }"); +#endif connectSignalsToBindings(); } } |