VirtualBox

Changeset 95068 in vbox


Ignore:
Timestamp:
May 24, 2022 8:04:24 AM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9831. Some improvements on the help viewer's context menu.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser
Files:
2 edited

Legend:

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

    r94064 r95068  
    804804    setActionTextAndToolTip(m_pHomeAction, tr("Home"), tr("Return to Start Page"));
    805805    setActionTextAndToolTip(m_pBackwardAction, tr("Backward"), tr("Go Back to Previous Page"));
    806     setActionTextAndToolTip(m_pForwardAction, tr("Forward"), tr("Go Froward to Next Page"));
     806    setActionTextAndToolTip(m_pForwardAction, tr("Forward"), tr("Go Forward to Next Page"));
    807807    setActionTextAndToolTip(m_pAddBookmarkAction, tr("Add Bookmark"), tr("Add a New Bookmark"));
    808808    setActionTextAndToolTip(m_pReloadPageAction, tr("Reload"), tr("Reload the Current Page"));
  • trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpViewer.cpp

    r94064 r95068  
    8080    void setForwardAvailable(bool fAvailable);
    8181
     82private slots:
     83
     84    void sltGoBackward();
     85    void sltGoForward();
     86    void sltGoHome();
     87    void sltReloadPage();
     88    void sltAddBookmark();
     89
    8290private:
    8391
     
    156164}
    157165
     166void UIContextMenuNavigationAction::sltGoBackward()
     167{
     168    emit sigGoBackward();
     169    emit triggered();
     170}
     171
     172void UIContextMenuNavigationAction::sltGoForward()
     173{
     174    emit sigGoForward();
     175    emit triggered();
     176}
     177
     178void UIContextMenuNavigationAction::sltGoHome()
     179{
     180    emit sigGoHome();
     181    emit triggered();
     182}
     183
     184void UIContextMenuNavigationAction::sltReloadPage()
     185{
     186    emit sigReloadPage();
     187    emit triggered();
     188}
     189
     190void UIContextMenuNavigationAction::sltAddBookmark()
     191{
     192    emit sigAddBookmark();
     193    emit triggered();
     194}
     195
    158196void UIContextMenuNavigationAction::prepare()
    159197{
     
    182220    m_pAddBookmarkButton->setIcon(UIIconPool::iconSet(":/help_browser_add_bookmark_16px.png", ":/help_browser_add_bookmark_disabled_16px.png"));
    183221
     222    m_pHomeButton->setToolTip(tr("Return to Start Page"));
     223    m_pReloadPageButton->setToolTip(tr("Reload the Current Page"));
     224    m_pForwardButton->setToolTip(tr("Go Forward to Next Page"));
     225    m_pBackwardButton->setToolTip(tr("Go Back to Previous Page"));
     226    m_pAddBookmarkButton->setToolTip(tr("Add a New Bookmark"));
     227
    184228    pMainLayout->addWidget(m_pBackwardButton);
    185229    pMainLayout->addWidget(m_pForwardButton);
     
    190234
    191235    connect(m_pBackwardButton, &QIToolButton::pressed,
    192             this, &UIContextMenuNavigationAction::sigGoBackward);
     236            this, &UIContextMenuNavigationAction::sltGoBackward);
    193237    connect(m_pForwardButton, &QIToolButton::pressed,
    194             this, &UIContextMenuNavigationAction::sigGoForward);
     238            this, &UIContextMenuNavigationAction::sltGoForward);
    195239    connect(m_pHomeButton, &QIToolButton::pressed,
    196             this, &UIContextMenuNavigationAction::sigGoHome);
     240            this, &UIContextMenuNavigationAction::sltGoHome);
    197241    connect(m_pReloadPageButton, &QIToolButton::pressed,
    198             this, &UIContextMenuNavigationAction::sigReloadPage);
     242            this, &UIContextMenuNavigationAction::sltReloadPage);
    199243    connect(m_pAddBookmarkButton, &QIToolButton::pressed,
    200             this, &UIContextMenuNavigationAction::sigAddBookmark);
     244            this, &UIContextMenuNavigationAction::sltAddBookmark);
    201245    connect(m_pReloadPageButton, &QIToolButton::pressed,
    202             this, &UIContextMenuNavigationAction::sigAddBookmark);
     246            this, &UIContextMenuNavigationAction::sltAddBookmark);
    203247}
    204248
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