VirtualBox

Ignore:
Timestamp:
Jun 7, 2021 8:02:49 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144897
Message:

FE/Qt: bugref:9831. Adding shortcuts to the navigation menu actions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserWidget.cpp

    r89410 r89539  
    793793{
    794794    if (m_pContentViewer)
     795    {
    795796        m_pContentViewer->forward();
     797        /* when we dont reload our overload imag hack does not work and images look ugly: */
     798        m_pContentViewer->reload();
     799    }
    796800}
    797801
     
    799803{
    800804    if (m_pContentViewer)
     805    {
    801806        m_pContentViewer->backward();
     807        /* when we dont reload our overload imag hack does not work and images look ugly: */
     808        m_pContentViewer->reload();
     809    }
    802810}
    803811
     
    14691477
    14701478    m_pBackwardAction = new QAction(this);
     1479    m_pBackwardAction->setShortcut(QKeySequence::Back);
    14711480    connect(m_pBackwardAction, &QAction::triggered,
    14721481            this, &UIHelpBrowserWidget::sigGoBackward);
     
    14741483
    14751484    m_pForwardAction = new QAction(this);
     1485    m_pForwardAction->setShortcut(QKeySequence::Forward);
    14761486    connect(m_pForwardAction, &QAction::triggered,
    14771487            this, &UIHelpBrowserWidget::sigGoForward);
     
    14831493
    14841494    m_pReloadPageAction = new QAction(this);
     1495    m_pReloadPageAction->setShortcut(QKeySequence::Refresh);
    14851496    connect(m_pReloadPageAction, &QAction::triggered,
    14861497            this, &UIHelpBrowserWidget::sigReloadPage);
    14871498
    14881499    m_pAddBookmarkAction = new QAction(this);
     1500    m_pAddBookmarkAction->setShortcut(QKeySequence("Ctrl+D"));
    14891501    connect(m_pAddBookmarkAction, &QAction::triggered,
    14901502            this, &UIHelpBrowserWidget::sigAddBookmark);
     
    18081820        m_pFindInPageAction->setText(tr("&Find in Page"));
    18091821    if (m_pFindNextInPageAction)
    1810         m_pFindNextInPageAction->setText(tr("&Find Next"));
     1822        m_pFindNextInPageAction->setText(tr("Find Ne&xt"));
    18111823    if (m_pFindPreviousInPageAction)
    1812         m_pFindPreviousInPageAction->setText(tr("&Find Previous"));
     1824        m_pFindPreviousInPageAction->setText(tr("Find &Previous"));
    18131825
    18141826    if (m_pBackwardAction)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette