Doc: Fix QDoc warnings in Core plugin classes

Task-number: QTCREATORBUG-23620
Change-Id: Idf1fb2b3f930812c3cf18b9f8ced03fb8e0947be
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Leena Miettinen
2020-03-18 13:32:02 +01:00
parent b4a9801f05
commit eecd2a5aa1
15 changed files with 260 additions and 266 deletions

View File

@@ -30,13 +30,15 @@
#include <QTextCodec>
/*!
\class Core::TextDocument
\brief The TextDocument class is a very general base class for documents that work with text.
\class Core::BaseTextDocument
\inmodule QtCreator
\brief The BaseTextDocument class is a very general base class for
documents that work with text.
This class contains helper methods for saving and reading text files with encoding and
line ending settings.
\sa Utils::TextFileUtils
\sa Utils::TextFileFormat
*/
enum { debug = 0 };
@@ -78,7 +80,13 @@ QByteArray BaseTextDocument::decodingErrorSample() const
}
/*!
Writes out text using the format obtained from the last read.
Writes out the contents (\a data) of the text file \a fileName.
Uses the format obtained from the last read() of the file.
If an error occurs while writing the file, \a errorMessage is set to the
error details.
Returns whether the operation was successful.
*/
bool BaseTextDocument::write(const QString &fileName, const QString &data, QString *errorMessage) const
@@ -87,7 +95,13 @@ bool BaseTextDocument::write(const QString &fileName, const QString &data, QStri
}
/*!
Writes out text using a custom \a format.
Writes out the contents (\a data) of the text file \a fileName.
Uses the custom format \a format.
If an error occurs while writing the file, \a errorMessage is set to the
error details.
Returns whether the operation was successful.
*/
bool BaseTextDocument::write(const QString &fileName, const Utils::TextFileFormat &format, const QString &data, QString *errorMessage) const
@@ -108,7 +122,13 @@ void BaseTextDocument::setLineTerminationMode(Utils::TextFileFormat::LineTermina
}
/*!
Autodetects format and reads in the text file specified by \a fileName.
Autodetects file format and reads the text file specified by \a fileName
into a list of strings specified by \a plainTextList.
If an error occurs while writing the file, \a errorMessage is set to the
error details.
Returns whether the operation was successful.
*/
BaseTextDocument::ReadResult BaseTextDocument::read(const QString &fileName, QStringList *plainTextList, QString *errorString)
@@ -120,7 +140,13 @@ BaseTextDocument::ReadResult BaseTextDocument::read(const QString &fileName, QSt
}
/*!
Autodetects format and reads in the text file specified by \a fileName.
Autodetects file format and reads the text file specified by \a fileName
into \a plainText.
If an error occurs while writing the file, \a errorMessage is set to the
error details.
Returns whether the operation was successful.
*/
BaseTextDocument::ReadResult BaseTextDocument::read(const QString &fileName, QString *plainText, QString *errorString)
@@ -161,7 +187,7 @@ Utils::TextFileFormat::LineTerminationMode BaseTextDocument::lineTerminationMode
}
/*!
Returns the format obtained from the last call to \c read().
Returns the format obtained from the last call to read().
*/
Utils::TextFileFormat BaseTextDocument::format() const