forked from qt-creator/qt-creator
Help: Clean up automatically registered documentation
It would keep documentation registered as long as the files are still there, but that is actually not what is wanted. If you remove a Qt version from Qt Creator, or switch between different Qt Creator installations with different auto-detected Qt versions, the registered documentation should be updated. This also reduces the number of open files in these cases. We keep a list of manually added documentation in the settings and treat all other documentation as automatically managed. Change-Id: I542f9aee0e62cab70db5afc5c6d6764d84cb253d Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
This commit is contained in:
@@ -69,6 +69,9 @@ public:
|
||||
static void registerDocumentation(const QStringList &fileNames);
|
||||
static void unregisterDocumentation(const QStringList &nameSpaces);
|
||||
|
||||
static void registerUserDocumentation(const QStringList &filePaths);
|
||||
static QSet<QString> userDocumentationPaths();
|
||||
|
||||
static QMap<QString, QUrl> linksForKeyword(const QString &key);
|
||||
static QMap<QString, QUrl> linksForIdentifier(const QString &id);
|
||||
static QStringList findKeywords(const QString &key,
|
||||
@@ -109,7 +112,6 @@ private:
|
||||
~HelpManager();
|
||||
|
||||
static void setupHelpManager();
|
||||
static void verifyDocumenation();
|
||||
friend class Core::Internal::CorePlugin; // setupHelpManager
|
||||
friend class Core::Internal::MainWindow; // constructor/destructor
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user