VirtualBox

Changeset 88470 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 12, 2021 1:32:49 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9831. Shortcut fixes.

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

Legend:

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

    r88465 r88470  
    667667                     m_pFindInPageAction);
    668668    m_pFindInPageAction->setCheckable(true);
     669    m_pFindInPageAction->setShortcut(QKeySequence::Find);
    669670
    670671    connect(m_pHomeAction, &QAction::triggered, this, &UIHelpBrowserTab::sltHandleHomeAction);
     
    12411242    connect(m_pPrintAction, &QAction::triggered,
    12421243            this, &UIHelpBrowserWidget::sltShowPrintDialog);
    1243 
    1244     m_pCloseDialogAction = new QAction(this);
    1245     connect(m_pCloseDialogAction, &QAction::triggered,
     1244    m_pPrintAction->setShortcut(QString("Ctrl+P"));
     1245
     1246    m_pQuitAction = new QAction(this);
     1247    connect(m_pQuitAction, &QAction::triggered,
    12461248            this, &UIHelpBrowserWidget::sigCloseDialog);
     1249    m_pQuitAction->setShortcut(QString("Ctrl+Q"));
    12471250
    12481251    m_pZoomMenuAction = new UIZoomMenuAction(this);
     
    13831386void UIHelpBrowserWidget::prepareMenu()
    13841387{
    1385     m_pFileMenu = new QMenu(tr("File"), this);
    1386     m_pViewMenu = new QMenu(tr("View"), this);
    1387     m_pTabsMenu = new QMenu(tr("Tabs"), this);
     1388    m_pFileMenu = new QMenu(tr("&File"), this);
     1389    m_pViewMenu = new QMenu(tr("&View"), this);
     1390    m_pTabsMenu = new QMenu(tr("&Tabs"), this);
    13881391
    13891392    AssertReturnVoid(m_pFileMenu && m_pViewMenu && m_pTabsMenu);
     
    13911394    if (m_pPrintAction)
    13921395        m_pFileMenu->addAction(m_pPrintAction);
    1393     if (m_pCloseDialogAction)
    1394         m_pFileMenu->addAction(m_pCloseDialogAction);
     1396    if (m_pQuitAction)
     1397        m_pFileMenu->addAction(m_pQuitAction);
    13951398
    13961399    if (m_pZoomMenuAction)
     
    15191522
    15201523    if (m_pShowHideSideBarAction)
    1521         m_pShowHideSideBarAction->setText(tr("Show Side Bar"));
     1524        m_pShowHideSideBarAction->setText(tr("Show &Side Bar"));
    15221525    if (m_pShowHideToolBarAction)
    1523         m_pShowHideToolBarAction->setText(tr("Show Tool Bar"));
     1526        m_pShowHideToolBarAction->setText(tr("Show &Tool Bar"));
    15241527    if (m_pShowHideStatusBarAction)
    1525         m_pShowHideStatusBarAction->setText(tr("Show Status Bar"));
     1528        m_pShowHideStatusBarAction->setText(tr("Show St&atus Bar"));
    15261529
    15271530    if (m_pPrintAction)
    1528         m_pPrintAction->setText(tr("Print..."));
    1529     if (m_pCloseDialogAction)
    1530         m_pCloseDialogAction->setText(tr("Close"));
     1531        m_pPrintAction->setText(tr("&Print..."));
     1532    if (m_pQuitAction)
     1533        m_pQuitAction->setText(tr("&Quit"));
    15311534}
    15321535
  • trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserWidget.h

    r88436 r88470  
    164164    QWidget             *m_pSearchContainerWidget;
    165165    QAction             *m_pPrintAction;
    166     QAction             *m_pCloseDialogAction;
     166    QAction             *m_pQuitAction;
    167167    QAction             *m_pShowHideSideBarAction;
    168168    QAction             *m_pShowHideToolBarAction;
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