BaseQtVersion: Deduplicate documentation related methods

Use docsPath() over documentationPath() since that fits better into
the naming scheme of the rest and already returns a FilePath.

Change hasDocumentation() to hasDocs() accordingly.

Change-Id: I619d7c68e612c4e25a830e4dce128d9a1e84c2e2
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Tobias Hunger
2019-09-30 15:54:11 +02:00
parent 67934ccaaa
commit a542f5075f
4 changed files with 7 additions and 14 deletions

View File

@@ -469,8 +469,8 @@ static void updateDocumentation()
{
QStringList files;
foreach (BaseQtVersion *v, m_versions) {
const QStringList docPaths = QStringList({v->documentationPath() + QChar('/'),
v->documentationPath() + "/qch/"});
const QStringList docPaths = QStringList(
{v->docsPath().toString() + QChar('/'), v->docsPath().toString() + "/qch/"});
foreach (const QString &docPath, docPaths) {
const QDir versionHelpDir(docPath);
foreach (const QString &helpFile,