Help: Add option for help viewer backend

Add "Reload" menu item, which re-creates the help viewer with the
current backend.

Change-Id: I979cb9cdf5ae5635f4d028dc41d71ab71ce80248
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Eike Ziller
2019-08-30 14:34:19 +02:00
parent d3c94edd93
commit 1bbdb1440f
6 changed files with 150 additions and 29 deletions

View File

@@ -26,7 +26,6 @@
#pragma once
#include <coreplugin/helpmanager.h>
#include <utils/optional.h>
#include <QMetaType>
#include <QMutex>
@@ -102,9 +101,11 @@ public:
static int lastSelectedTab();
static void setLastSelectedTab(int index);
static QByteArray defaultViewerBackend();
static HelpViewerFactory defaultViewerBackend();
static QVector<HelpViewerFactory> viewerBackends();
static HelpViewerFactory viewerBackend();
static void setViewerBackendId(const QByteArray &id);
static QByteArray viewerBackendId();
static void setupGuiHelpEngine();
static void setEngineNeedsUpdate();