QmlPuppet: Fall back to pre-Qt5.2 for QVariant comparison

Change-Id: Ibf55561e01f50ec7d689d40b50d100b8d257aa80
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
hjk
2020-06-26 07:42:41 +02:00
parent 0bf5ca1b3e
commit dbca372780

View File

@@ -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()) {