summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@qt.io>2020-02-07 15:25:09 +0100
committerLeena Miettinen <riitta-leena.miettinen@qt.io>2020-02-07 14:28:02 +0000
commit13cd5add85aa336021d942904305addc1443d886 (patch)
treedeb4d6a96fc2c02ec3382260808b4e774d6928a1
parentd9d86782ce1679598d517e1b8cae526e216b7195 (diff)
downloadqt-creator-13cd5add85aa336021d942904305addc1443d886.tar.gz
Doc: Fix errors in QrcParser and QrcCache docs
Task-number: QTCREATORBUG-23544 Change-Id: Ibd3bdd0b1aecf594b191b2ff902b38cdb335b1d4 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r--src/libs/utils/qrcparser.cpp21
1 files changed, 16 insertions, 5 deletions
diff --git a/src/libs/utils/qrcparser.cpp b/src/libs/utils/qrcparser.cpp
index 2dfb9a19c2..91fc69673f 100644
--- a/src/libs/utils/qrcparser.cpp
+++ b/src/libs/utils/qrcparser.cpp
@@ -170,7 +170,7 @@ QrcParser::QrcParser()
}
/*!
- Destructs the QRC parser.
+ \internal
*/
QrcParser::~QrcParser()
{
@@ -178,7 +178,12 @@ QrcParser::~QrcParser()
}
/*!
- Returns the \a contents of the file at \a path.
+ Parses the QRC file at \a path. If \a contents is not empty, it is used as
+ the file contents instead of reading it from the file system.
+
+ Returns whether the parsing succeeded.
+
+ \sa errorMessages(), parseQrcFile()
*/
bool QrcParser::parseFile(const QString &path, const QString &contents)
{
@@ -304,7 +309,13 @@ QrcCache::~QrcCache()
}
/*!
- Returns the \a contents of a file at \a path.
+ Parses the QRC file at \a path and caches the parser. If \a contents is not
+ empty, it is used as the file contents instead of reading it from the file
+ system.
+
+ Returns whether the parsing succeeded.
+
+ \sa QrcParser::errorMessages(), QrcParser::parseQrcFile()
*/
QrcParser::ConstPtr QrcCache::addPath(const QString &path, const QString &contents)
{
@@ -320,7 +331,7 @@ void QrcCache::removePath(const QString &path)
}
/*!
- Returns updates to the \a contents of a file at \a path.
+ Reparses the QRC file at \a path and returns the \a contents of the file.
*/
QrcParser::ConstPtr QrcCache::updatePath(const QString &path, const QString &contents)
{
@@ -328,7 +339,7 @@ QrcParser::ConstPtr QrcCache::updatePath(const QString &path, const QString &con
}
/*!
- Returns the parsed \a path.
+ Returns the cached QRC parser for the QRC file at \a path.
*/
QrcParser::ConstPtr QrcCache::parsedPath(const QString &path)
{