Changeset 88526 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 15, 2021 11:42:22 AM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserWidget.cpp
r88523 r88526 211 211 public slots: 212 212 213 void slt HandleFindInPageAction(bool fToggled);213 void sltFindInPageAction(bool fToggled); 214 214 215 215 private slots: 216 216 217 void sltH andleHomeAction();218 void slt HandleForwardAction();219 void slt HandleBackwardAction();220 void sltH andleHistoryChanged();221 void slt HandleAddressBarIndexChanged(int index);222 void slt HandleAddBookmarkAction();217 void sltHomeAction(); 218 void sltForwardAction(); 219 void sltBackwardAction(); 220 void sltHistoryChanged(); 221 void sltAddressBarIndexChanged(int index); 222 void sltAddBookmarkAction(); 223 223 void sltAnchorClicked(const QUrl &link); 224 224 void sltFindInPageWidgetVisibilityChanged(bool fVisible); … … 294 294 public slots: 295 295 296 void slt HandleCloseCurrentTab();297 void slt HandleCloseOtherTabs();298 void slt HandleZoomOperation(UIHelpViewer::ZoomOperation enmZoomOperation);296 void sltCloseCurrentTab(); 297 void sltCloseOtherTabs(); 298 void sltZoomOperation(UIHelpViewer::ZoomOperation enmZoomOperation); 299 299 300 300 private slots: 301 301 302 void slt HandletabTitleChange(const QString &strTitle);303 void slt HandleOpenLinkInNewTab(const QUrl &url, bool fBackground);304 void slt HandleTabClose(int iTabIndex);305 void slt HandleContextMenuTabClose();306 void slt HandleCurrentChanged(int iTabIndex);302 void slttabTitleChange(const QString &strTitle); 303 void sltOpenLinkInNewTab(const QUrl &url, bool fBackground); 304 void sltTabClose(int iTabIndex); 305 void sltContextMenuTabClose(); 306 void sltCurrentChanged(int iTabIndex); 307 307 void sltShowTabBarContextMenu(const QPoint &pos); 308 void slt HandleCloseOtherTabsContextMenuAction();308 void sltCloseOtherTabsContextMenuAction(); 309 309 void sltCopyAvailableChanged(bool fAvailable); 310 310 … … 662 662 this, &UIHelpBrowserTab::sigSourceChanged); 663 663 connect(m_pContentViewer, &UIHelpViewer::historyChanged, 664 this, &UIHelpBrowserTab::sltH andleHistoryChanged);664 this, &UIHelpBrowserTab::sltHistoryChanged); 665 665 connect(m_pContentViewer, &UIHelpViewer::anchorClicked, 666 666 this, &UIHelpBrowserTab::sltAnchorClicked); … … 668 668 this, &UIHelpBrowserTab::sigOpenLinkInNewTab); 669 669 connect(m_pContentViewer, &UIHelpViewer::sigGoBackward, 670 this, &UIHelpBrowserTab::slt HandleBackwardAction);670 this, &UIHelpBrowserTab::sltBackwardAction); 671 671 connect(m_pContentViewer, &UIHelpViewer::sigGoForward, 672 this, &UIHelpBrowserTab::slt HandleForwardAction);672 this, &UIHelpBrowserTab::sltForwardAction); 673 673 connect(m_pContentViewer, &UIHelpViewer::sigGoHome, 674 this, &UIHelpBrowserTab::sltH andleHomeAction);674 this, &UIHelpBrowserTab::sltHomeAction); 675 675 connect(m_pContentViewer, &UIHelpViewer::sigAddBookmark, 676 this, &UIHelpBrowserTab::slt HandleAddBookmarkAction);676 this, &UIHelpBrowserTab::sltAddBookmarkAction); 677 677 connect(m_pContentViewer, static_cast<void(UIHelpViewer::*)(const QString&)>(&UIHelpViewer::highlighted), 678 678 this, &UIHelpBrowserTab::sigLinkHighlighted); … … 706 706 m_pFindInPageAction->setShortcut(QKeySequence::Find); 707 707 708 connect(m_pHomeAction, &QAction::triggered, this, &UIHelpBrowserTab::sltH andleHomeAction);709 connect(m_pAddBookmarkAction, &QAction::triggered, this, &UIHelpBrowserTab::slt HandleAddBookmarkAction);710 connect(m_pForwardAction, &QAction::triggered, this, &UIHelpBrowserTab::slt HandleForwardAction);711 connect(m_pBackwardAction, &QAction::triggered, this, &UIHelpBrowserTab::slt HandleBackwardAction);712 connect(m_pFindInPageAction, &QAction::toggled, this, &UIHelpBrowserTab::slt HandleFindInPageAction);708 connect(m_pHomeAction, &QAction::triggered, this, &UIHelpBrowserTab::sltHomeAction); 709 connect(m_pAddBookmarkAction, &QAction::triggered, this, &UIHelpBrowserTab::sltAddBookmarkAction); 710 connect(m_pForwardAction, &QAction::triggered, this, &UIHelpBrowserTab::sltForwardAction); 711 connect(m_pBackwardAction, &QAction::triggered, this, &UIHelpBrowserTab::sltBackwardAction); 712 connect(m_pFindInPageAction, &QAction::toggled, this, &UIHelpBrowserTab::sltFindInPageAction); 713 713 714 714 m_pForwardAction->setEnabled(false); … … 726 726 m_pAddressBar->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); 727 727 connect(m_pAddressBar, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged), 728 this, &UIHelpBrowserTab::slt HandleAddressBarIndexChanged);728 this, &UIHelpBrowserTab::sltAddressBarIndexChanged); 729 729 730 730 … … 752 752 } 753 753 754 void UIHelpBrowserTab::sltH andleHomeAction()754 void UIHelpBrowserTab::sltHomeAction() 755 755 { 756 756 if (!m_pContentViewer) … … 759 759 } 760 760 761 void UIHelpBrowserTab::slt HandleForwardAction()761 void UIHelpBrowserTab::sltForwardAction() 762 762 { 763 763 if (m_pContentViewer) … … 765 765 } 766 766 767 void UIHelpBrowserTab::slt HandleBackwardAction()767 void UIHelpBrowserTab::sltBackwardAction() 768 768 { 769 769 if (m_pContentViewer) … … 771 771 } 772 772 773 void UIHelpBrowserTab::slt HandleFindInPageAction(bool fToggled)773 void UIHelpBrowserTab::sltFindInPageAction(bool fToggled) 774 774 { 775 775 if (m_pContentViewer) … … 777 777 } 778 778 779 void UIHelpBrowserTab::sltH andleHistoryChanged()779 void UIHelpBrowserTab::sltHistoryChanged() 780 780 { 781 781 if (!m_pContentViewer) … … 806 806 } 807 807 808 void UIHelpBrowserTab::slt HandleAddressBarIndexChanged(int iIndex)808 void UIHelpBrowserTab::sltAddressBarIndexChanged(int iIndex) 809 809 { 810 810 if (!m_pAddressBar && iIndex >= m_pAddressBar->count()) … … 822 822 } 823 823 824 void UIHelpBrowserTab::slt HandleAddBookmarkAction()824 void UIHelpBrowserTab::sltAddBookmarkAction() 825 825 { 826 826 emit sigAddBookmark(source(), documentTitle()); … … 878 878 this, &UIHelpBrowserTabManager::sigSourceChanged); 879 879 connect(pTabWidget, &UIHelpBrowserTab::sigTitleUpdate, 880 this, &UIHelpBrowserTabManager::slt HandletabTitleChange);880 this, &UIHelpBrowserTabManager::slttabTitleChange); 881 881 connect(pTabWidget, &UIHelpBrowserTab::sigOpenLinkInNewTab, 882 this, &UIHelpBrowserTabManager::slt HandleOpenLinkInNewTab);882 this, &UIHelpBrowserTabManager::sltOpenLinkInNewTab); 883 883 connect(pTabWidget, &UIHelpBrowserTab::sigAddBookmark, 884 884 this, &UIHelpBrowserTabManager::sigAddBookmark); … … 1082 1082 UIHelpBrowserTab *pTab = qobject_cast<UIHelpBrowserTab*>(currentWidget()); 1083 1083 if (pTab) 1084 pTab->slt HandleFindInPageAction(fTrigger);1085 } 1086 1087 void UIHelpBrowserTabManager::slt HandletabTitleChange(const QString &strTitle)1084 pTab->sltFindInPageAction(fTrigger); 1085 } 1086 1087 void UIHelpBrowserTabManager::slttabTitleChange(const QString &strTitle) 1088 1088 { 1089 1089 for (int i = 0; i < count(); ++i) … … 1099 1099 } 1100 1100 1101 void UIHelpBrowserTabManager::slt HandleOpenLinkInNewTab(const QUrl &url, bool fBackground)1101 void UIHelpBrowserTabManager::sltOpenLinkInNewTab(const QUrl &url, bool fBackground) 1102 1102 { 1103 1103 if (url.isValid()) … … 1114 1114 } 1115 1115 1116 void UIHelpBrowserTabManager::slt HandleTabClose(int iTabIndex)1116 void UIHelpBrowserTabManager::sltTabClose(int iTabIndex) 1117 1117 { 1118 1118 if (count() <= 1) … … 1126 1126 } 1127 1127 1128 void UIHelpBrowserTabManager::slt HandleContextMenuTabClose()1128 void UIHelpBrowserTabManager::sltContextMenuTabClose() 1129 1129 { 1130 1130 QAction *pAction = qobject_cast<QAction*>(sender()); … … 1134 1134 if (iTabIndex < 0 || iTabIndex >= count()) 1135 1135 return; 1136 slt HandleTabClose(iTabIndex);1137 } 1138 1139 void UIHelpBrowserTabManager::slt HandleCloseOtherTabsContextMenuAction()1136 sltTabClose(iTabIndex); 1137 } 1138 1139 void UIHelpBrowserTabManager::sltCloseOtherTabsContextMenuAction() 1140 1140 { 1141 1141 /* Find the index of the sender tab. we will close all tabs but sender tab: */ … … 1149 1149 } 1150 1150 1151 void UIHelpBrowserTabManager::slt HandleCloseCurrentTab()1152 { 1153 slt HandleTabClose(currentIndex());1154 } 1155 1156 void UIHelpBrowserTabManager::slt HandleCloseOtherTabs()1151 void UIHelpBrowserTabManager::sltCloseCurrentTab() 1152 { 1153 sltTabClose(currentIndex()); 1154 } 1155 1156 void UIHelpBrowserTabManager::sltCloseOtherTabs() 1157 1157 { 1158 1158 closeAllTabsBut(currentIndex()); 1159 1159 } 1160 1160 1161 void UIHelpBrowserTabManager::slt HandleCurrentChanged(int iTabIndex)1161 void UIHelpBrowserTabManager::sltCurrentChanged(int iTabIndex) 1162 1162 { 1163 1163 Q_UNUSED(iTabIndex); … … 1165 1165 } 1166 1166 1167 void UIHelpBrowserTabManager::slt HandleZoomOperation(UIHelpViewer::ZoomOperation enmZoomOperation)1167 void UIHelpBrowserTabManager::sltZoomOperation(UIHelpViewer::ZoomOperation enmZoomOperation) 1168 1168 { 1169 1169 for (int i = 0; i < count(); ++i) … … 1181 1181 QMenu menu; 1182 1182 QAction *pCloseAll = menu.addAction(UIHelpBrowserWidget::tr("Close Other Tabs")); 1183 connect(pCloseAll, &QAction::triggered, this, &UIHelpBrowserTabManager::slt HandleCloseOtherTabsContextMenuAction);1183 connect(pCloseAll, &QAction::triggered, this, &UIHelpBrowserTabManager::sltCloseOtherTabsContextMenuAction); 1184 1184 pCloseAll->setData(tabBar()->tabAt(pos)); 1185 1185 1186 1186 QAction *pClose = menu.addAction(UIHelpBrowserWidget::tr("Close Tab")); 1187 connect(pClose, &QAction::triggered, this, &UIHelpBrowserTabManager::slt HandleContextMenuTabClose);1187 connect(pClose, &QAction::triggered, this, &UIHelpBrowserTabManager::sltContextMenuTabClose); 1188 1188 pClose->setData(tabBar()->tabAt(pos)); 1189 1189 … … 1195 1195 setTabsClosable(true); 1196 1196 setTabBarAutoHide(true); 1197 connect(this, &UIHelpBrowserTabManager::tabCloseRequested, this, &UIHelpBrowserTabManager::slt HandleTabClose);1198 connect(this, &UIHelpBrowserTabManager::currentChanged, this, &UIHelpBrowserTabManager::slt HandleCurrentChanged);1197 connect(this, &UIHelpBrowserTabManager::tabCloseRequested, this, &UIHelpBrowserTabManager::sltTabClose); 1198 connect(this, &UIHelpBrowserTabManager::currentChanged, this, &UIHelpBrowserTabManager::sltCurrentChanged); 1199 1199 if (tabBar()) 1200 1200 { … … 1312 1312 m_pShowHideSideBarAction->setChecked(true); 1313 1313 connect(m_pShowHideSideBarAction, &QAction::toggled, 1314 this, &UIHelpBrowserWidget::slt HandleWidgetVisibilityToggle);1314 this, &UIHelpBrowserWidget::sltWidgetVisibilityToggle); 1315 1315 1316 1316 m_pShowHideToolBarAction = new QAction(this); … … 1318 1318 m_pShowHideToolBarAction->setChecked(true); 1319 1319 connect(m_pShowHideToolBarAction, &QAction::toggled, 1320 this, &UIHelpBrowserWidget::slt HandleWidgetVisibilityToggle);1320 this, &UIHelpBrowserWidget::sltWidgetVisibilityToggle); 1321 1321 1322 1322 m_pShowHideStatusBarAction = new QAction(this); … … 1324 1324 m_pShowHideStatusBarAction->setChecked(true); 1325 1325 connect(m_pShowHideStatusBarAction, &QAction::toggled, 1326 this, &UIHelpBrowserWidget::slt HandleWidgetVisibilityToggle);1326 this, &UIHelpBrowserWidget::sltWidgetVisibilityToggle); 1327 1327 1328 1328 m_pCopySelectedTextAction = new QAction(this); … … 1350 1350 m_pZoomMenuAction = new UIZoomMenuAction(this); 1351 1351 connect(m_pZoomMenuAction, &UIZoomMenuAction::sigZoomChanged, 1352 this, &UIHelpBrowserWidget::slt HandleZoomActions);1352 this, &UIHelpBrowserWidget::sltZoomActions); 1353 1353 } 1354 1354 … … 1393 1393 this, &UIHelpBrowserWidget::sltAddNewBookmark); 1394 1394 connect(m_pTabManager, &UIHelpBrowserTabManager::sigTabsListChanged, 1395 this, &UIHelpBrowserWidget::slt HandleTabListChanged);1395 this, &UIHelpBrowserWidget::sltTabListChanged); 1396 1396 connect(m_pTabManager, &UIHelpBrowserTabManager::currentChanged, 1397 this, &UIHelpBrowserWidget::slt HandleCurrentTabChanged);1397 this, &UIHelpBrowserWidget::sltCurrentTabChanged); 1398 1398 connect(m_pTabManager, &UIHelpBrowserTabManager::sigLinkHighlighted, 1399 1399 this, &UIHelpBrowserWidget::sigLinkHighlighted); … … 1406 1406 1407 1407 connect(m_pHelpEngine, &QHelpEngine::setupFinished, 1408 this, &UIHelpBrowserWidget::sltH andleHelpEngineSetupFinished);1408 this, &UIHelpBrowserWidget::sltHelpEngineSetupFinished); 1409 1409 connect(m_pContentWidget, &QHelpContentWidget::clicked, 1410 this, &UIHelpBrowserWidget::slt HandleContentWidgetItemClicked);1410 this, &UIHelpBrowserWidget::sltContentWidgetItemClicked); 1411 1411 connect(m_pContentModel, &QHelpContentModel::contentsCreated, 1412 this, &UIHelpBrowserWidget::slt HandleContentsCreated);1412 this, &UIHelpBrowserWidget::sltContentsCreated); 1413 1413 connect(m_pContentWidget, &QHelpContentWidget::customContextMenuRequested, 1414 1414 this, &UIHelpBrowserWidget::sltShowLinksContextMenu); … … 1446 1446 1447 1447 connect(m_pSearchQueryWidget, &QHelpSearchQueryWidget::search, 1448 this, &UIHelpBrowserWidget::slt HandleSearchStart);1448 this, &UIHelpBrowserWidget::sltSearchStart); 1449 1449 connect(m_pSearchResultWidget, &QHelpSearchResultWidget::requestShowLink, 1450 1450 this, &UIHelpBrowserWidget::sltOpenLinkWithUrl); … … 1452 1452 this, &UIHelpBrowserWidget::sltShowLinksContextMenu); 1453 1453 connect(m_pSearchEngine, &QHelpSearchEngine::indexingStarted, 1454 this, &UIHelpBrowserWidget::slt HandleIndexingStarted);1454 this, &UIHelpBrowserWidget::sltIndexingStarted); 1455 1455 connect(m_pSearchEngine, &QHelpSearchEngine::indexingFinished, 1456 this, &UIHelpBrowserWidget::slt HandleIndexingFinished);1456 this, &UIHelpBrowserWidget::sltIndexingFinished); 1457 1457 connect(m_pSearchEngine, &QHelpSearchEngine::searchingStarted, 1458 this, &UIHelpBrowserWidget::slt HandleSearchingStarted);1458 this, &UIHelpBrowserWidget::sltSearchingStarted); 1459 1459 1460 1460 m_pSearchEngine->reindexDocumentation(); … … 1673 1673 } 1674 1674 1675 void UIHelpBrowserWidget::slt HandleWidgetVisibilityToggle(bool fToggled)1675 void UIHelpBrowserWidget::sltWidgetVisibilityToggle(bool fToggled) 1676 1676 { 1677 1677 if (sender() == m_pShowHideSideBarAction) … … 1729 1729 } 1730 1730 1731 void UIHelpBrowserWidget::sltH andleHelpEngineSetupFinished()1731 void UIHelpBrowserWidget::sltHelpEngineSetupFinished() 1732 1732 { 1733 1733 AssertReturnVoid(m_pTabManager); … … 1736 1736 } 1737 1737 1738 void UIHelpBrowserWidget::slt HandleContentWidgetItemClicked(const QModelIndex & index)1738 void UIHelpBrowserWidget::sltContentWidgetItemClicked(const QModelIndex & index) 1739 1739 { 1740 1740 AssertReturnVoid(m_pTabManager && m_pHelpEngine && m_pContentWidget); … … 1765 1765 } 1766 1766 1767 void UIHelpBrowserWidget::slt HandleContentsCreated()1767 void UIHelpBrowserWidget::sltContentsCreated() 1768 1768 { 1769 1769 m_fModelContentCreated = true; … … 1772 1772 } 1773 1773 1774 void UIHelpBrowserWidget::slt HandleIndexingStarted()1774 void UIHelpBrowserWidget::sltIndexingStarted() 1775 1775 { 1776 1776 if (m_pSearchContainerWidget) … … 1778 1778 } 1779 1779 1780 void UIHelpBrowserWidget::slt HandleIndexingFinished()1780 void UIHelpBrowserWidget::sltIndexingFinished() 1781 1781 { 1782 1782 AssertReturnVoid(m_pTabManager && … … 1793 1793 } 1794 1794 1795 void UIHelpBrowserWidget::slt HandleSearchingStarted()1796 { 1797 } 1798 1799 void UIHelpBrowserWidget::slt HandleSearchStart()1795 void UIHelpBrowserWidget::sltSearchingStarted() 1796 { 1797 } 1798 1799 void UIHelpBrowserWidget::sltSearchStart() 1800 1800 { 1801 1801 AssertReturnVoid(m_pSearchEngine && m_pSearchQueryWidget); … … 1919 1919 pCloseOtherTabsAction->setEnabled(titles.size() > 1); 1920 1920 1921 connect(pCloseTabAction, &QAction::triggered, m_pTabManager, &UIHelpBrowserTabManager::slt HandleCloseCurrentTab);1922 connect(pCloseOtherTabsAction, &QAction::triggered, m_pTabManager, &UIHelpBrowserTabManager::slt HandleCloseOtherTabs);1921 connect(pCloseTabAction, &QAction::triggered, m_pTabManager, &UIHelpBrowserTabManager::sltCloseCurrentTab); 1922 connect(pCloseOtherTabsAction, &QAction::triggered, m_pTabManager, &UIHelpBrowserTabManager::sltCloseOtherTabs); 1923 1923 1924 1924 m_pTabsMenu->addSeparator(); … … 1928 1928 QAction *pAction = m_pTabsMenu->addAction(titles[i]); 1929 1929 pAction->setData(i); 1930 connect(pAction, &QAction::triggered, this, &UIHelpBrowserWidget::slt HandleTabChoose);1930 connect(pAction, &QAction::triggered, this, &UIHelpBrowserWidget::sltTabChoose); 1931 1931 } 1932 1932 if (m_pTabManager) 1933 slt HandleCurrentTabChanged(m_pTabManager->currentIndex());1933 sltCurrentTabChanged(m_pTabManager->currentIndex()); 1934 1934 } 1935 1935 … … 1940 1940 } 1941 1941 1942 void UIHelpBrowserWidget::slt HandleZoomActions(int iZoomOperation)1942 void UIHelpBrowserWidget::sltZoomActions(int iZoomOperation) 1943 1943 { 1944 1944 if (iZoomOperation >= (int) UIHelpViewer::ZoomOperation_Max) 1945 1945 return; 1946 1946 UIHelpViewer::ZoomOperation enmOperation = (UIHelpViewer::ZoomOperation)(iZoomOperation); 1947 m_pTabManager->slt HandleZoomOperation(enmOperation);1948 } 1949 1950 void UIHelpBrowserWidget::slt HandleTabListChanged(const QStringList &titleList)1947 m_pTabManager->sltZoomOperation(enmOperation); 1948 } 1949 1950 void UIHelpBrowserWidget::sltTabListChanged(const QStringList &titleList) 1951 1951 { 1952 1952 updateTabsMenu(titleList); 1953 1953 } 1954 1954 1955 void UIHelpBrowserWidget::slt HandleTabChoose()1955 void UIHelpBrowserWidget::sltTabChoose() 1956 1956 { 1957 1957 QAction *pAction = qobject_cast<QAction*>(sender()); … … 1963 1963 } 1964 1964 1965 void UIHelpBrowserWidget::slt HandleCurrentTabChanged(int iIndex)1965 void UIHelpBrowserWidget::sltCurrentTabChanged(int iIndex) 1966 1966 { 1967 1967 Q_UNUSED(iIndex); -
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserWidget.h
r88522 r88526 76 76 private slots: 77 77 78 void sltH andleHelpEngineSetupFinished();79 void slt HandleContentWidgetItemClicked(const QModelIndex &index);80 void slt HandleWidgetVisibilityToggle(bool togggled);78 void sltHelpEngineSetupFinished(); 79 void sltContentWidgetItemClicked(const QModelIndex &index); 80 void sltWidgetVisibilityToggle(bool togggled); 81 81 void sltShowPrintDialog(); 82 void slt HandleContentsCreated();83 void slt HandleIndexingStarted();84 void slt HandleIndexingFinished();85 void slt HandleSearchingStarted();86 void slt HandleSearchStart();82 void sltContentsCreated(); 83 void sltIndexingStarted(); 84 void sltIndexingFinished(); 85 void sltSearchingStarted(); 86 void sltSearchStart(); 87 87 void sltViewerSourceChange(const QUrl &source); 88 88 void sltOpenLinkWithUrl(const QUrl &url); … … 92 92 void sltCopyLink(); 93 93 void sltAddNewBookmark(const QUrl &url, const QString &strTitle); 94 void slt HandleZoomActions(int iZoomOperation);95 void slt HandleTabListChanged(const QStringList &titleList);96 void slt HandleTabChoose();97 void slt HandleCurrentTabChanged(int iIndex);94 void sltZoomActions(int iZoomOperation); 95 void sltTabListChanged(const QStringList &titleList); 96 void sltTabChoose(); 97 void sltCurrentTabChanged(int iIndex); 98 98 void sltZoomPercentageChanged(int iPercentage); 99 99 void sltCopySelectedText(); -
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpViewer.cpp
r88522 r88526 345 345 setUndoRedoEnabled(true); 346 346 connect(m_pFindInPageWidget, &UIFindInPageWidget::sigDragging, 347 this, &UIHelpViewer::slt HandleFindWidgetDrag);347 this, &UIHelpViewer::sltFindWidgetDrag); 348 348 connect(m_pFindInPageWidget, &UIFindInPageWidget::sigSearchTextChanged, 349 this, &UIHelpViewer::slt HandleFindInPageSearchTextChange);349 this, &UIHelpViewer::sltFindInPageSearchTextChange); 350 350 351 351 connect(m_pFindInPageWidget, &UIFindInPageWidget::sigSelectPreviousMatch, … … 545 545 QAction *pOpenLinkAction = new QAction(UIHelpBrowserWidget::tr("Open Link")); 546 546 connect(pOpenLinkAction, &QAction::triggered, 547 this, &UIHelpViewer::slt HandleOpenLink);547 this, &UIHelpViewer::sltOpenLink); 548 548 549 549 QAction *pOpenInNewTabAction = new QAction(UIHelpBrowserWidget::tr("Open Link in New Tab")); 550 550 connect(pOpenInNewTabAction, &QAction::triggered, 551 this, &UIHelpViewer::slt HandleOpenLinkInNewTab);551 this, &UIHelpViewer::sltOpenLinkInNewTab); 552 552 553 553 QAction *pCopyLink = new QAction(UIHelpBrowserWidget::tr("Copy Link")); 554 554 connect(pCopyLink, &QAction::triggered, 555 this, &UIHelpViewer::slt HandleCopyLink);555 this, &UIHelpViewer::sltCopyLink); 556 556 557 557 QAction *pFindInPage = new QAction(UIHelpBrowserWidget::tr("Find in Page")); … … 821 821 } 822 822 823 void UIHelpViewer::slt HandleOpenLinkInNewTab()823 void UIHelpViewer::sltOpenLinkInNewTab() 824 824 { 825 825 QAction *pSender = qobject_cast<QAction*>(sender()); … … 831 831 } 832 832 833 void UIHelpViewer::slt HandleOpenLink()833 void UIHelpViewer::sltOpenLink() 834 834 { 835 835 QAction *pSender = qobject_cast<QAction*>(sender()); … … 841 841 } 842 842 843 void UIHelpViewer::slt HandleCopyLink()843 void UIHelpViewer::sltCopyLink() 844 844 { 845 845 QAction *pSender = qobject_cast<QAction*>(sender()); … … 855 855 } 856 856 857 void UIHelpViewer::slt HandleFindWidgetDrag(const QPoint &delta)857 void UIHelpViewer::sltFindWidgetDrag(const QPoint &delta) 858 858 { 859 859 if (!m_pFindInPageWidget) … … 869 869 } 870 870 871 void UIHelpViewer::slt HandleFindInPageSearchTextChange(const QString &strSearchText)871 void UIHelpViewer::sltFindInPageSearchTextChange(const QString &strSearchText) 872 872 { 873 873 m_iSearchTermLength = strSearchText.length(); 874 874 findAllMatches(strSearchText); 875 875 highlightFinds(m_iSearchTermLength); 876 //scrollToMatch(int iMatchIndex);877 876 selectMatch(0, m_iSearchTermLength); 878 877 if (m_pFindInPageWidget) -
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpViewer.h
r88522 r88526 92 92 private slots: 93 93 94 void slt HandleOpenLinkInNewTab();95 void slt HandleOpenLink();96 void slt HandleCopyLink();97 void slt HandleFindWidgetDrag(const QPoint &delta);98 void slt HandleFindInPageSearchTextChange(const QString &strSearchText);94 void sltOpenLinkInNewTab(); 95 void sltOpenLink(); 96 void sltCopyLink(); 97 void sltFindWidgetDrag(const QPoint &delta); 98 void sltFindInPageSearchTextChange(const QString &strSearchText); 99 99 void sltSelectPreviousMatch(); 100 100 void sltSelectNextMatch();
Note:
See TracChangeset
for help on using the changeset viewer.