diff options
Diffstat (limited to 'examples/corelib/serialization/savegame/doc/src/savegame.qdoc')
-rw-r--r-- | examples/corelib/serialization/savegame/doc/src/savegame.qdoc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/corelib/serialization/savegame/doc/src/savegame.qdoc b/examples/corelib/serialization/savegame/doc/src/savegame.qdoc index 7f138ff110..84807e57dc 100644 --- a/examples/corelib/serialization/savegame/doc/src/savegame.qdoc +++ b/examples/corelib/serialization/savegame/doc/src/savegame.qdoc @@ -136,9 +136,8 @@ and \c "save.dat" for CBOR. We print a warning and return \c false if the file couldn't be opened. - Since QJsonDocument's \l{QJsonDocument::fromJson()}{fromJson()} and - \l{QJsonDocument::fromBinaryData()}{fromBinaryData()} functions both take a - QByteArray, we can read the entire contents of the save file into one, + Since \l QJsonDocument::fromJson() and \l QCborValue::fromCbor() both take + a QByteArray, we can read the entire contents of the save file into one, regardless of the save format. After constructing the QJsonDocument, we instruct the Game object to read |