summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qdebug.cpp
diff options
context:
space:
mode:
authorOleksii Zbykovskyi <Oleksii.Zbykovskyi@qt.io>2025-07-16 10:57:53 +0200
committerOleksii Zbykovskyi <Oleksii.Zbykovskyi@qt.io>2025-07-24 18:52:41 +0200
commit70cc4a7dc1620f09d2b377405c29c5ed6167b8a1 (patch)
tree396fb2b6210aaa3a2f509b95b03d1d9ee9a6f8a4 /src/corelib/io/qdebug.cpp
parent80b61558814c435949e70391d7e7d812bc7b85d7 (diff)
Fix of files under src_corelib_io prefix
Made all snippets in these files compilable Also fixed some documentation related to the snippets change. Removed qdebug docs file since it was not used anywhere except one file. Obviously, moved the text to that file. Task-number: QTBUG-137566 Change-Id: I914afc96d58617a04d03d4f6e9545ec1aa2a8eb8 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/io/qdebug.cpp')
-rw-r--r--src/corelib/io/qdebug.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/corelib/io/qdebug.cpp b/src/corelib/io/qdebug.cpp
index be106dae5e6..da5c6682bb5 100644
--- a/src/corelib/io/qdebug.cpp
+++ b/src/corelib/io/qdebug.cpp
@@ -1051,7 +1051,15 @@ QDebug &QDebug::resetFormat()
\fn template <class T> QString QDebug::toString(const T &object)
\since 6.0
- \include qdebug-toString.qdocinc
+ Streams \a object into a QDebug instance that operates on a string,
+ and then returns that string.
+
+ This function is useful for cases where you need the textual representation
+ of an object for debugging, but cannot use \c {operator<<}. For example:
+
+ \snippet code/src_corelib_io_qdebug.cpp toString
+
+ The string is streamed using \l nospace().
\sa toBytes()
*/