From a4341827ac17c14541ea69c67c76aaae5a09ddcc Mon Sep 17 00:00:00 2001 From: Ivan Solovev Date: Fri, 26 Apr 2024 13:07:28 +0200 Subject: QEasingCurve: use comparison helper macros Like with the QLine(F) case, we have to use QT_CORE_REMOVED_SINCE to remove the old member operators, but also need to guard the new friend functions with !(QT_CORE_REMOVED_SINCE), because QEasingCurve is also one of the core types, and on Windows the metatype interface for it is instantiated in removed_api.cpp. Task-number: QTBUG-120308 Change-Id: I1bd66f7230afd3eba868d05fd496ab13a0331178 Reviewed-by: Tatiana Borisova --- src/corelib/compat/removed_api.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/corelib/compat/removed_api.cpp') diff --git a/src/corelib/compat/removed_api.cpp b/src/corelib/compat/removed_api.cpp index 1b987f7886..05bcda0943 100644 --- a/src/corelib/compat/removed_api.cpp +++ b/src/corelib/compat/removed_api.cpp @@ -952,6 +952,13 @@ bool QDir::operator==(const QDir &dir) const return comparesEqual(*this, dir); } +#include "qeasingcurve.h" + +bool QEasingCurve::operator==(const QEasingCurve &other) const +{ + return comparesEqual(*this, other); +} + #include "qfileinfo.h" // inlined API bool QFileInfo::operator==(const QFileInfo &fileinfo) const -- cgit v1.2.3