Provide the new comparesEqual() helper function as an implementation of (in)equality operators. Use QT_DECLARE_EQUALITY_OPERATORS_HELPER macro instead of Q_DECLARE_EQUALITY_COMPARABLE for the comparison between QPointer<T> and QPointer<X> to avoid creating the reversed version of the operators in C++17 mode. Use new \compares command in the documentation to describe the comparison operators provided by QPointer. Task-number: QTBUG-120306 Change-Id: Iff24d3ef5c790de7f06ab825f853e06186fa1471 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| CMakeLists.txt | ||
| tst_qpointer.cpp | ||