diff --git a/src/corelib/io/qdebug.h b/src/corelib/io/qdebug.h index 582ee942952..872b5e5d79e 100644 --- a/src/corelib/io/qdebug.h +++ b/src/corelib/io/qdebug.h @@ -650,6 +650,11 @@ inline QDebug operator<<(QDebug debug, Flags flags) } } +#ifdef Q_QDOC +template +QDebug operator<<(QDebug debug, const QFlags &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