From dbca37278053f95fa01c643a0867722dfcb09a55 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 26 Jun 2020 07:42:41 +0200 Subject: [PATCH] QmlPuppet: Fall back to pre-Qt5.2 for QVariant comparison Change-Id: Ibf55561e01f50ec7d689d40b50d100b8d257aa80 Reviewed-by: Thomas Hartmann --- .../qtcreator/qml/qmlpuppet/container/informationcontainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/qtcreator/qml/qmlpuppet/container/informationcontainer.cpp b/share/qtcreator/qml/qmlpuppet/container/informationcontainer.cpp index d5ddb20fa5b..7f272b36368 100644 --- a/share/qtcreator/qml/qmlpuppet/container/informationcontainer.cpp +++ b/share/qtcreator/qml/qmlpuppet/container/informationcontainer.cpp @@ -105,7 +105,7 @@ bool operator ==(const InformationContainer &first, const InformationContainer & && first.m_thirdInformation == second.m_thirdInformation; } -#if QT_VERSION < QT_VERSION_CHECK(5, 2, 0) +#if QT_VERSION < QT_VERSION_CHECK(5, 2, 0) || QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) static bool operator <(const QVariant &first, const QVariant &second) { if (first.userType() == second.userType()) {