forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user