Changeset 88470 in vbox for trunk/src/VBox
- Timestamp:
- Apr 12, 2021 1:32:49 PM (4 years ago)
- 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 667 667 m_pFindInPageAction); 668 668 m_pFindInPageAction->setCheckable(true); 669 m_pFindInPageAction->setShortcut(QKeySequence::Find); 669 670 670 671 connect(m_pHomeAction, &QAction::triggered, this, &UIHelpBrowserTab::sltHandleHomeAction); … … 1241 1242 connect(m_pPrintAction, &QAction::triggered, 1242 1243 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, 1246 1248 this, &UIHelpBrowserWidget::sigCloseDialog); 1249 m_pQuitAction->setShortcut(QString("Ctrl+Q")); 1247 1250 1248 1251 m_pZoomMenuAction = new UIZoomMenuAction(this); … … 1383 1386 void UIHelpBrowserWidget::prepareMenu() 1384 1387 { 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); 1388 1391 1389 1392 AssertReturnVoid(m_pFileMenu && m_pViewMenu && m_pTabsMenu); … … 1391 1394 if (m_pPrintAction) 1392 1395 m_pFileMenu->addAction(m_pPrintAction); 1393 if (m_p CloseDialogAction)1394 m_pFileMenu->addAction(m_p CloseDialogAction);1396 if (m_pQuitAction) 1397 m_pFileMenu->addAction(m_pQuitAction); 1395 1398 1396 1399 if (m_pZoomMenuAction) … … 1519 1522 1520 1523 if (m_pShowHideSideBarAction) 1521 m_pShowHideSideBarAction->setText(tr("Show Side Bar"));1524 m_pShowHideSideBarAction->setText(tr("Show &Side Bar")); 1522 1525 if (m_pShowHideToolBarAction) 1523 m_pShowHideToolBarAction->setText(tr("Show Tool Bar"));1526 m_pShowHideToolBarAction->setText(tr("Show &Tool Bar")); 1524 1527 if (m_pShowHideStatusBarAction) 1525 m_pShowHideStatusBarAction->setText(tr("Show St atus Bar"));1528 m_pShowHideStatusBarAction->setText(tr("Show St&atus Bar")); 1526 1529 1527 1530 if (m_pPrintAction) 1528 m_pPrintAction->setText(tr(" Print..."));1529 if (m_p CloseDialogAction)1530 m_p CloseDialogAction->setText(tr("Close"));1531 m_pPrintAction->setText(tr("&Print...")); 1532 if (m_pQuitAction) 1533 m_pQuitAction->setText(tr("&Quit")); 1531 1534 } 1532 1535 -
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserWidget.h
r88436 r88470 164 164 QWidget *m_pSearchContainerWidget; 165 165 QAction *m_pPrintAction; 166 QAction *m_p CloseDialogAction;166 QAction *m_pQuitAction; 167 167 QAction *m_pShowHideSideBarAction; 168 168 QAction *m_pShowHideToolBarAction;
Note:
See TracChangeset
for help on using the changeset viewer.