summaryrefslogtreecommitdiff
path: root/src/plugins/help/helpplugin.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2019-09-27 13:05:34 +0200
committerEike Ziller <eike.ziller@qt.io>2019-09-30 11:19:21 +0000
commitd34aee4d533304e3afacecf2ff0ae0d243fcd188 (patch)
treef0a1a04a735a328bee3e666e9985f31698dcb698 /src/plugins/help/helpplugin.cpp
parent6123580767bae14340119f64fa77c4c65c600184 (diff)
downloadqt-creator-d34aee4d533304e3afacecf2ff0ae0d243fcd188.tar.gz
Help: Fix missing page switching keyboard shortcuts for external window
Which are relevant now that external windows support multiple pages. Change-Id: Ibc748e9e0582c8d54264af535c32aa2702f91631 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/help/helpplugin.cpp')
-rw-r--r--src/plugins/help/helpplugin.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/plugins/help/helpplugin.cpp b/src/plugins/help/helpplugin.cpp
index fdbe8a154f..1313ca6c0a 100644
--- a/src/plugins/help/helpplugin.cpp
+++ b/src/plugins/help/helpplugin.cpp
@@ -191,8 +191,6 @@ bool HelpPlugin::initialize(const QStringList &arguments, QString *error)
HelpPluginPrivate::HelpPluginPrivate()
{
- Context modecontext(Help::Constants::C_MODE_HELP);
-
const QString &locale = ICore::userInterfaceLanguage();
if (!locale.isEmpty()) {
auto qtr = new QTranslator(this);
@@ -284,29 +282,6 @@ HelpPluginPrivate::HelpPluginPrivate()
ActionManager::actionContainer(Core::Constants::M_HELP)->addAction(cmd, Core::Constants::G_HELP_SUPPORT);
connect(action, &QAction::triggered, this, &HelpPluginPrivate::slotSystemInformation);
- if (ActionContainer *windowMenu = ActionManager::actionContainer(Core::Constants::M_WINDOW)) {
- // reuse EditorManager constants to avoid a second pair of menu actions
- // Goto Previous In History Action
- action = new QAction(this);
- Command *ctrlTab = ActionManager::registerAction(action, Core::Constants::GOTOPREVINHISTORY,
- modecontext);
- windowMenu->addAction(ctrlTab, Core::Constants::G_WINDOW_NAVIGATE);
- connect(action,
- &QAction::triggered,
- m_centralWidget->openPagesManager(),
- &OpenPagesManager::gotoPreviousPage);
-
- // Goto Next In History Action
- action = new QAction(this);
- Command *ctrlShiftTab = ActionManager::registerAction(action, Core::Constants::GOTONEXTINHISTORY,
- modecontext);
- windowMenu->addAction(ctrlShiftTab, Core::Constants::G_WINDOW_NAVIGATE);
- connect(action,
- &QAction::triggered,
- m_centralWidget->openPagesManager(),
- &OpenPagesManager::gotoNextPage);
- }
-
connect(&helpIndexFilter, &HelpIndexFilter::linksActivated,
this, &HelpPluginPrivate::showLinksInCurrentViewer);