Doc: Add \a commands and return values to TextFileFormat docs

To fix qdoc warnings.

Change-Id: I6258223e83517c1206e8bdb4db20db4e8fc60751
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Leena Miettinen
2023-05-25 13:05:02 +02:00
parent 648cf50d85
commit 2ad153f30e

View File

@@ -52,7 +52,7 @@ QDebug operator<<(QDebug d, const TextFileFormat &format)
TextFileFormat::TextFileFormat() = default;
/*!
Detects the format of text data.
Detects the format of text \a data.
*/
TextFileFormat TextFileFormat::detect(const QByteArray &data)
@@ -85,7 +85,8 @@ TextFileFormat TextFileFormat::detect(const QByteArray &data)
}
/*!
Returns a piece of text suitable as display for a encoding error.
Returns a piece of text specified by \a data suitable as display for
an encoding error.
*/
QByteArray TextFileFormat::decodingErrorSample(const QByteArray &data)
@@ -153,7 +154,7 @@ bool decodeTextFileContent(const QByteArray &dataBA,
}
/*!
Decodes data to a plain string.
Returns \a data decoded to a plain string, \a target.
*/
bool TextFileFormat::decode(const QByteArray &data, QString *target) const
@@ -163,7 +164,7 @@ bool TextFileFormat::decode(const QByteArray &data, QString *target) const
}
/*!
Decodes data to a list of strings.
Returns \a data decoded to a list of strings, \a target.
Intended for use with progress bars loading large files.
*/
@@ -212,7 +213,12 @@ TextFileFormat::ReadResult readTextFile(const FilePath &filePath, const QTextCod
}
/*!
Reads a text file into a list of strings.
Reads a text file from \a filePath into a list of strings, \a plainTextList
using \a defaultCodec and text file format \a format.
Returns whether decoding was possible without errors. If errors occur,
returns an error message, \a errorString and a sample error,
\a decodingErrorSample.
*/
TextFileFormat::ReadResult
@@ -230,7 +236,11 @@ TextFileFormat::ReadResult
}
/*!
Reads a text file into a string.
Reads a text file from \a filePath into a string, \a plainText using
\a defaultCodec and text file format \a format.
Returns whether decoding was possible without errors.
*/
TextFileFormat::ReadResult
@@ -279,7 +289,10 @@ TextFileFormat::ReadResult TextFileFormat::readFileUTF8(const FilePath &filePath
}
/*!
Writes out a text file.
Writes out a text file to \a filePath into a string, \a plainText.
Returns whether decoding was possible without errors. If errors occur,
returns an error message, \a errorString.
*/
bool TextFileFormat::writeFile(const FilePath &filePath, QString plainText, QString *errorString) const