Restore the docs for QFlags debug streaming operator

The unconstrained implementation was removed, so qdoc was not able to
find a proper function. Provide a fake definition that matches what
qdoc expects. In this case the users shouldn't really care about the
constraints that the actual implementation has.

Amends 0c707c6ebece18677deaccccdfec5d48c587106f.

Found in Qt 6.9 API review.

Change-Id: I6207b491fa94cc62d217af7dc7687923dc6971a4
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit b1509550436400ec9be608b5c760501d9b86912a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Ivan Solovev 2025-01-21 12:28:01 +01:00 committed by Qt Cherry-pick Bot
parent b9c1d1f7a1
commit d135c9ea00

View File

@ -650,6 +650,11 @@ inline QDebug operator<<(QDebug debug, Flags flags)
}
}
#ifdef Q_QDOC
template <typename T>
QDebug operator<<(QDebug debug, const QFlags<T> &flags);
#endif // Q_QDOC
#if !defined(QT_NO_QOBJECT) && !defined(Q_QDOC)
// Debugging of plain enums. There are three cases:
// 1) the enum is part of a Q_DECLARE_FLAGS and there's a Q_FLAG for that