forked from qt-creator/qt-creator
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user