From 2c01d402e19b6137cf24794cbc4533a2b8b2d816 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 18 Nov 2014 14:32:38 -0800 Subject: QDebug: pretty-print QStrings and QStringRefs [ChangeLog][QtCore][QDebug] Printing of QStrings and QStringRefs whenever "noquote" is not active now prints the strings in a format that can be copied back to C++ code. All characters that aren't printable in US-ASCII are escaped (this includes printable Unicode characters outside of US-ASCII). Pretty-printing will not respect QTextFormat padding or field widths. Change-Id: I169a8a0508e24693f5652f0129defe7f709e5d08 Reviewed-by: Oswald Buddenhagen Reviewed-by: Thiago Macieira --- src/corelib/io/qtextstream.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/corelib/io/qtextstream.h') diff --git a/src/corelib/io/qtextstream.h b/src/corelib/io/qtextstream.h index 5c75a006af..b15e7772e2 100644 --- a/src/corelib/io/qtextstream.h +++ b/src/corelib/io/qtextstream.h @@ -185,6 +185,7 @@ public: private: Q_DISABLE_COPY(QTextStream) friend class QDebugStateSaverPrivate; + friend class QDebug; QScopedPointer d_ptr; }; -- cgit v1.2.3