QVersionNumber: Show type in QDebug output
To make it clearer what kind of object is being printed, and also more consistent with the QDebug output of other classes. Fixes: QTBUG-103085 Pick-to: 6.3 Change-Id: Ia7441dd373d359be2a87ec618684d27375a1dcf8 Reviewed-by: Marc Mutz <marc.mutz@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
acfbe3b779
commit
9bd4e0fe13
@ -531,7 +531,8 @@ QDataStream& operator>>(QDataStream &in, QVersionNumber &version)
|
||||
QDebug operator<<(QDebug debug, const QVersionNumber &version)
|
||||
{
|
||||
QDebugStateSaver saver(debug);
|
||||
debug.noquote() << version.toString();
|
||||
debug.nospace().noquote();
|
||||
debug << "QVersionNumber(" << version.toString() << ")";
|
||||
return debug;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user