diff options
author | Luca Di Sera <luca.disera@qt.io> | 2021-11-22 17:26:05 +0100 |
---|---|---|
committer | Luca Di Sera <luca.disera@qt.io> | 2021-11-25 09:55:48 +0100 |
commit | c880696f06dc0ff581d53ff3a9b4543028038a69 (patch) | |
tree | 02999d0228c43ec03f679e182b817736cf75c364 /src/xml | |
parent | 925ad7802470ab9b4fd1cce51548ccc5182eb4cc (diff) |
Doc: Replace use of \oldcode-\newcode
The command-pair was recently deprecated.
The replacement code should produce an output that is equal to the
previous one.
Task-number: QTBUG-98499
Change-Id: If26e0d85a174ebc3858b638c34d7f43637eab46d
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/xml')
-rw-r--r-- | src/xml/doc/src/qt6-changes.qdoc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/xml/doc/src/qt6-changes.qdoc b/src/xml/doc/src/qt6-changes.qdoc index 7a19649fb2..c810142424 100644 --- a/src/xml/doc/src/qt6-changes.qdoc +++ b/src/xml/doc/src/qt6-changes.qdoc @@ -46,7 +46,9 @@ QXmlStreamReader for reading XML files. Here are some simple steps to port your current code to QXmlStreamReader: - \oldcode + For example, if you have code like + + \code QFile *file = new QFile(...); QXmlInputSource *source = new QXmlInputSource(file); @@ -61,7 +63,11 @@ } else { ... // do error handling } - \newcode + \endcode + + you can rewrite it as + + \code QFile file = ...; QXmlStreamReader reader(&file); |