From 6a59cb891b7010cb97fcbdccf2b816ceadb516b6 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 1 Mar 2024 12:22:58 +0100 Subject: [PATCH] Qt/Documentation: Avoid automatic loading of unrelated help files On Linux/KDE systems, the KDE documentation files can be installed in the Qt documentation directory. This leads to a great of documentation files to be loaded by default, which we try to avoid for performance reasons. Restrict the pattern for .qch files to start with a 'q', which still matches the Qt documentation files. If the user wants the documentation of KDE libraries, they can register them manually. Change-Id: Ib658c3b2c26a97ca69a8c0e46a5057a58b5a7ec7 Reviewed-by: Christian Kandeler --- src/plugins/qtsupport/qtversionmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qtsupport/qtversionmanager.cpp b/src/plugins/qtsupport/qtversionmanager.cpp index 715eec8aa2d..acdaba62827 100644 --- a/src/plugins/qtsupport/qtversionmanager.cpp +++ b/src/plugins/qtsupport/qtversionmanager.cpp @@ -506,7 +506,7 @@ static QList> documentationFiles(QtVersion *v) {v->docsPath().toString() + QChar('/'), v->docsPath().toString() + "/qch/"}); for (const QString &docPath : docPaths) { const QDir versionHelpDir(docPath); - for (const QString &helpFile : versionHelpDir.entryList(QStringList("*.qch"), QDir::Files)) + for (const QString &helpFile : versionHelpDir.entryList(QStringList("q*.qch"), QDir::Files)) files.append({docPath, helpFile}); } return files;