Remove superfluous QT_VERSION_CHECK tests
Change-Id: I09345f1e0cd23591de7a9fe545076cd8a951ee73 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
parent
01d84ffc74
commit
8a55827198
|
@ -246,12 +246,10 @@ void QQmlConnections::connectSignals()
|
|||
if (d->bindings.isEmpty()) {
|
||||
connectSignalsToMethods();
|
||||
} else {
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
|
||||
if (lcQmlConnections().isWarningEnabled()) {
|
||||
qmlWarning(this) << tr("Implicitly defined onFoo properties in Connections are deprecated. "
|
||||
"Use this syntax instead: function onFoo(<arguments>) { ... }");
|
||||
}
|
||||
#endif
|
||||
connectSignalsToBindings();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,12 +15,7 @@
|
|||
// We mean it.
|
||||
//
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 11, 0)
|
||||
# include <QtTest/qtest_global.h>
|
||||
# include <QtCore/private/qglobal_p.h>
|
||||
#else
|
||||
# include <QtTest/qttestglobal.h>
|
||||
#endif
|
||||
|
||||
#include <QtCore/qstring.h>
|
||||
#include <QtCore/qstringlist.h>
|
||||
|
|
Loading…
Reference in New Issue