aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qtsupport
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2024-03-01 12:22:58 +0100
committerEike Ziller <eike.ziller@qt.io>2024-03-01 12:45:58 +0000
commit6a59cb891b7010cb97fcbdccf2b816ceadb516b6 (patch)
treeece345d88fdf711bc5f9e6faee6927d79163fc09 /src/plugins/qtsupport
parent262dcc6643225d413490fbf03a1b1471b380518d (diff)
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 <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/qtsupport')
-rw-r--r--src/plugins/qtsupport/qtversionmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qtsupport/qtversionmanager.cpp b/src/plugins/qtsupport/qtversionmanager.cpp
index 715eec8aa2..acdaba6282 100644
--- a/src/plugins/qtsupport/qtversionmanager.cpp
+++ b/src/plugins/qtsupport/qtversionmanager.cpp
@@ -506,7 +506,7 @@ static QList<std::pair<Path, FileName>> 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;