VirtualBox

Changeset 88526 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Apr 15, 2021 11:42:22 AM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9831. some refactoring

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  
    211211public slots:
    212212
    213     void sltHandleFindInPageAction(bool fToggled);
     213    void sltFindInPageAction(bool fToggled);
    214214
    215215private slots:
    216216
    217     void sltHandleHomeAction();
    218     void sltHandleForwardAction();
    219     void sltHandleBackwardAction();
    220     void sltHandleHistoryChanged();
    221     void sltHandleAddressBarIndexChanged(int index);
    222     void sltHandleAddBookmarkAction();
     217    void sltHomeAction();
     218    void sltForwardAction();
     219    void sltBackwardAction();
     220    void sltHistoryChanged();
     221    void sltAddressBarIndexChanged(int index);
     222    void sltAddBookmarkAction();
    223223    void sltAnchorClicked(const QUrl &link);
    224224    void sltFindInPageWidgetVisibilityChanged(bool  fVisible);
     
    294294public slots:
    295295
    296     void sltHandleCloseCurrentTab();
    297     void sltHandleCloseOtherTabs();
    298     void sltHandleZoomOperation(UIHelpViewer::ZoomOperation enmZoomOperation);
     296    void sltCloseCurrentTab();
     297    void sltCloseOtherTabs();
     298    void sltZoomOperation(UIHelpViewer::ZoomOperation enmZoomOperation);
    299299
    300300private slots:
    301301
    302     void sltHandletabTitleChange(const QString &strTitle);
    303     void sltHandleOpenLinkInNewTab(const QUrl &url, bool fBackground);
    304     void sltHandleTabClose(int iTabIndex);
    305     void sltHandleContextMenuTabClose();
    306     void sltHandleCurrentChanged(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);
    307307    void sltShowTabBarContextMenu(const QPoint &pos);
    308     void sltHandleCloseOtherTabsContextMenuAction();
     308    void sltCloseOtherTabsContextMenuAction();
    309309    void sltCopyAvailableChanged(bool fAvailable);
    310310
     
    662662        this, &UIHelpBrowserTab::sigSourceChanged);
    663663    connect(m_pContentViewer, &UIHelpViewer::historyChanged,
    664         this, &UIHelpBrowserTab::sltHandleHistoryChanged);
     664        this, &UIHelpBrowserTab::sltHistoryChanged);
    665665    connect(m_pContentViewer, &UIHelpViewer::anchorClicked,
    666666        this, &UIHelpBrowserTab::sltAnchorClicked);
     
    668668        this, &UIHelpBrowserTab::sigOpenLinkInNewTab);
    669669    connect(m_pContentViewer, &UIHelpViewer::sigGoBackward,
    670             this, &UIHelpBrowserTab::sltHandleBackwardAction);
     670            this, &UIHelpBrowserTab::sltBackwardAction);
    671671    connect(m_pContentViewer, &UIHelpViewer::sigGoForward,
    672             this, &UIHelpBrowserTab::sltHandleForwardAction);
     672            this, &UIHelpBrowserTab::sltForwardAction);
    673673    connect(m_pContentViewer, &UIHelpViewer::sigGoHome,
    674             this, &UIHelpBrowserTab::sltHandleHomeAction);
     674            this, &UIHelpBrowserTab::sltHomeAction);
    675675    connect(m_pContentViewer, &UIHelpViewer::sigAddBookmark,
    676             this, &UIHelpBrowserTab::sltHandleAddBookmarkAction);
     676            this, &UIHelpBrowserTab::sltAddBookmarkAction);
    677677    connect(m_pContentViewer, static_cast<void(UIHelpViewer::*)(const QString&)>(&UIHelpViewer::highlighted),
    678678            this, &UIHelpBrowserTab::sigLinkHighlighted);
     
    706706    m_pFindInPageAction->setShortcut(QKeySequence::Find);
    707707
    708     connect(m_pHomeAction, &QAction::triggered, this, &UIHelpBrowserTab::sltHandleHomeAction);
    709     connect(m_pAddBookmarkAction, &QAction::triggered, this, &UIHelpBrowserTab::sltHandleAddBookmarkAction);
    710     connect(m_pForwardAction, &QAction::triggered, this, &UIHelpBrowserTab::sltHandleForwardAction);
    711     connect(m_pBackwardAction, &QAction::triggered, this, &UIHelpBrowserTab::sltHandleBackwardAction);
    712     connect(m_pFindInPageAction, &QAction::toggled, this, &UIHelpBrowserTab::sltHandleFindInPageAction);
     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);
    713713
    714714    m_pForwardAction->setEnabled(false);
     
    726726    m_pAddressBar->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
    727727    connect(m_pAddressBar, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
    728             this, &UIHelpBrowserTab::sltHandleAddressBarIndexChanged);
     728            this, &UIHelpBrowserTab::sltAddressBarIndexChanged);
    729729
    730730
     
    752752}
    753753
    754 void UIHelpBrowserTab::sltHandleHomeAction()
     754void UIHelpBrowserTab::sltHomeAction()
    755755{
    756756    if (!m_pContentViewer)
     
    759759}
    760760
    761 void UIHelpBrowserTab::sltHandleForwardAction()
     761void UIHelpBrowserTab::sltForwardAction()
    762762{
    763763    if (m_pContentViewer)
     
    765765}
    766766
    767 void UIHelpBrowserTab::sltHandleBackwardAction()
     767void UIHelpBrowserTab::sltBackwardAction()
    768768{
    769769    if (m_pContentViewer)
     
    771771}
    772772
    773 void UIHelpBrowserTab::sltHandleFindInPageAction(bool fToggled)
     773void UIHelpBrowserTab::sltFindInPageAction(bool fToggled)
    774774{
    775775    if (m_pContentViewer)
     
    777777}
    778778
    779 void UIHelpBrowserTab::sltHandleHistoryChanged()
     779void UIHelpBrowserTab::sltHistoryChanged()
    780780{
    781781    if (!m_pContentViewer)
     
    806806}
    807807
    808 void UIHelpBrowserTab::sltHandleAddressBarIndexChanged(int iIndex)
     808void UIHelpBrowserTab::sltAddressBarIndexChanged(int iIndex)
    809809{
    810810    if (!m_pAddressBar && iIndex >= m_pAddressBar->count())
     
    822822}
    823823
    824 void UIHelpBrowserTab::sltHandleAddBookmarkAction()
     824void UIHelpBrowserTab::sltAddBookmarkAction()
    825825{
    826826    emit sigAddBookmark(source(), documentTitle());
     
    878878            this, &UIHelpBrowserTabManager::sigSourceChanged);
    879879    connect(pTabWidget, &UIHelpBrowserTab::sigTitleUpdate,
    880             this, &UIHelpBrowserTabManager::sltHandletabTitleChange);
     880            this, &UIHelpBrowserTabManager::slttabTitleChange);
    881881    connect(pTabWidget, &UIHelpBrowserTab::sigOpenLinkInNewTab,
    882             this, &UIHelpBrowserTabManager::sltHandleOpenLinkInNewTab);
     882            this, &UIHelpBrowserTabManager::sltOpenLinkInNewTab);
    883883    connect(pTabWidget, &UIHelpBrowserTab::sigAddBookmark,
    884884            this, &UIHelpBrowserTabManager::sigAddBookmark);
     
    10821082    UIHelpBrowserTab *pTab = qobject_cast<UIHelpBrowserTab*>(currentWidget());
    10831083    if (pTab)
    1084         pTab->sltHandleFindInPageAction(fTrigger);
    1085 }
    1086 
    1087 void UIHelpBrowserTabManager::sltHandletabTitleChange(const QString &strTitle)
     1084        pTab->sltFindInPageAction(fTrigger);
     1085}
     1086
     1087void UIHelpBrowserTabManager::slttabTitleChange(const QString &strTitle)
    10881088{
    10891089    for (int i = 0; i < count(); ++i)
     
    10991099}
    11001100
    1101 void UIHelpBrowserTabManager::sltHandleOpenLinkInNewTab(const QUrl &url, bool fBackground)
     1101void UIHelpBrowserTabManager::sltOpenLinkInNewTab(const QUrl &url, bool fBackground)
    11021102{
    11031103    if (url.isValid())
     
    11141114}
    11151115
    1116 void UIHelpBrowserTabManager::sltHandleTabClose(int iTabIndex)
     1116void UIHelpBrowserTabManager::sltTabClose(int iTabIndex)
    11171117{
    11181118    if (count() <= 1)
     
    11261126}
    11271127
    1128 void UIHelpBrowserTabManager::sltHandleContextMenuTabClose()
     1128void UIHelpBrowserTabManager::sltContextMenuTabClose()
    11291129{
    11301130    QAction *pAction = qobject_cast<QAction*>(sender());
     
    11341134    if (iTabIndex < 0 || iTabIndex >= count())
    11351135        return;
    1136     sltHandleTabClose(iTabIndex);
    1137 }
    1138 
    1139 void UIHelpBrowserTabManager::sltHandleCloseOtherTabsContextMenuAction()
     1136    sltTabClose(iTabIndex);
     1137}
     1138
     1139void UIHelpBrowserTabManager::sltCloseOtherTabsContextMenuAction()
    11401140{
    11411141    /* Find the index of the sender tab. we will close all tabs but sender tab: */
     
    11491149}
    11501150
    1151 void UIHelpBrowserTabManager::sltHandleCloseCurrentTab()
    1152 {
    1153     sltHandleTabClose(currentIndex());
    1154 }
    1155 
    1156 void UIHelpBrowserTabManager::sltHandleCloseOtherTabs()
     1151void UIHelpBrowserTabManager::sltCloseCurrentTab()
     1152{
     1153    sltTabClose(currentIndex());
     1154}
     1155
     1156void UIHelpBrowserTabManager::sltCloseOtherTabs()
    11571157{
    11581158    closeAllTabsBut(currentIndex());
    11591159}
    11601160
    1161 void UIHelpBrowserTabManager::sltHandleCurrentChanged(int iTabIndex)
     1161void UIHelpBrowserTabManager::sltCurrentChanged(int iTabIndex)
    11621162{
    11631163    Q_UNUSED(iTabIndex);
     
    11651165}
    11661166
    1167 void UIHelpBrowserTabManager::sltHandleZoomOperation(UIHelpViewer::ZoomOperation enmZoomOperation)
     1167void UIHelpBrowserTabManager::sltZoomOperation(UIHelpViewer::ZoomOperation enmZoomOperation)
    11681168{
    11691169    for (int i = 0; i < count(); ++i)
     
    11811181    QMenu menu;
    11821182    QAction *pCloseAll = menu.addAction(UIHelpBrowserWidget::tr("Close Other Tabs"));
    1183     connect(pCloseAll, &QAction::triggered, this, &UIHelpBrowserTabManager::sltHandleCloseOtherTabsContextMenuAction);
     1183    connect(pCloseAll, &QAction::triggered, this, &UIHelpBrowserTabManager::sltCloseOtherTabsContextMenuAction);
    11841184    pCloseAll->setData(tabBar()->tabAt(pos));
    11851185
    11861186    QAction *pClose = menu.addAction(UIHelpBrowserWidget::tr("Close Tab"));
    1187     connect(pClose, &QAction::triggered, this, &UIHelpBrowserTabManager::sltHandleContextMenuTabClose);
     1187    connect(pClose, &QAction::triggered, this, &UIHelpBrowserTabManager::sltContextMenuTabClose);
    11881188    pClose->setData(tabBar()->tabAt(pos));
    11891189
     
    11951195    setTabsClosable(true);
    11961196    setTabBarAutoHide(true);
    1197     connect(this, &UIHelpBrowserTabManager::tabCloseRequested, this, &UIHelpBrowserTabManager::sltHandleTabClose);
    1198     connect(this, &UIHelpBrowserTabManager::currentChanged, this, &UIHelpBrowserTabManager::sltHandleCurrentChanged);
     1197    connect(this, &UIHelpBrowserTabManager::tabCloseRequested, this, &UIHelpBrowserTabManager::sltTabClose);
     1198    connect(this, &UIHelpBrowserTabManager::currentChanged, this, &UIHelpBrowserTabManager::sltCurrentChanged);
    11991199    if (tabBar())
    12001200    {
     
    13121312    m_pShowHideSideBarAction->setChecked(true);
    13131313    connect(m_pShowHideSideBarAction, &QAction::toggled,
    1314             this, &UIHelpBrowserWidget::sltHandleWidgetVisibilityToggle);
     1314            this, &UIHelpBrowserWidget::sltWidgetVisibilityToggle);
    13151315
    13161316    m_pShowHideToolBarAction = new QAction(this);
     
    13181318    m_pShowHideToolBarAction->setChecked(true);
    13191319    connect(m_pShowHideToolBarAction, &QAction::toggled,
    1320             this, &UIHelpBrowserWidget::sltHandleWidgetVisibilityToggle);
     1320            this, &UIHelpBrowserWidget::sltWidgetVisibilityToggle);
    13211321
    13221322    m_pShowHideStatusBarAction = new QAction(this);
     
    13241324    m_pShowHideStatusBarAction->setChecked(true);
    13251325    connect(m_pShowHideStatusBarAction, &QAction::toggled,
    1326             this, &UIHelpBrowserWidget::sltHandleWidgetVisibilityToggle);
     1326            this, &UIHelpBrowserWidget::sltWidgetVisibilityToggle);
    13271327
    13281328    m_pCopySelectedTextAction = new QAction(this);
     
    13501350    m_pZoomMenuAction = new UIZoomMenuAction(this);
    13511351    connect(m_pZoomMenuAction, &UIZoomMenuAction::sigZoomChanged,
    1352             this, &UIHelpBrowserWidget::sltHandleZoomActions);
     1352            this, &UIHelpBrowserWidget::sltZoomActions);
    13531353}
    13541354
     
    13931393            this, &UIHelpBrowserWidget::sltAddNewBookmark);
    13941394    connect(m_pTabManager, &UIHelpBrowserTabManager::sigTabsListChanged,
    1395             this, &UIHelpBrowserWidget::sltHandleTabListChanged);
     1395            this, &UIHelpBrowserWidget::sltTabListChanged);
    13961396    connect(m_pTabManager, &UIHelpBrowserTabManager::currentChanged,
    1397             this, &UIHelpBrowserWidget::sltHandleCurrentTabChanged);
     1397            this, &UIHelpBrowserWidget::sltCurrentTabChanged);
    13981398    connect(m_pTabManager, &UIHelpBrowserTabManager::sigLinkHighlighted,
    13991399            this, &UIHelpBrowserWidget::sigLinkHighlighted);
     
    14061406
    14071407    connect(m_pHelpEngine, &QHelpEngine::setupFinished,
    1408             this, &UIHelpBrowserWidget::sltHandleHelpEngineSetupFinished);
     1408            this, &UIHelpBrowserWidget::sltHelpEngineSetupFinished);
    14091409    connect(m_pContentWidget, &QHelpContentWidget::clicked,
    1410             this, &UIHelpBrowserWidget::sltHandleContentWidgetItemClicked);
     1410            this, &UIHelpBrowserWidget::sltContentWidgetItemClicked);
    14111411    connect(m_pContentModel, &QHelpContentModel::contentsCreated,
    1412             this, &UIHelpBrowserWidget::sltHandleContentsCreated);
     1412            this, &UIHelpBrowserWidget::sltContentsCreated);
    14131413    connect(m_pContentWidget, &QHelpContentWidget::customContextMenuRequested,
    14141414            this, &UIHelpBrowserWidget::sltShowLinksContextMenu);
     
    14461446
    14471447    connect(m_pSearchQueryWidget, &QHelpSearchQueryWidget::search,
    1448             this, &UIHelpBrowserWidget::sltHandleSearchStart);
     1448            this, &UIHelpBrowserWidget::sltSearchStart);
    14491449    connect(m_pSearchResultWidget, &QHelpSearchResultWidget::requestShowLink,
    14501450            this, &UIHelpBrowserWidget::sltOpenLinkWithUrl);
     
    14521452            this, &UIHelpBrowserWidget::sltShowLinksContextMenu);
    14531453    connect(m_pSearchEngine, &QHelpSearchEngine::indexingStarted,
    1454             this, &UIHelpBrowserWidget::sltHandleIndexingStarted);
     1454            this, &UIHelpBrowserWidget::sltIndexingStarted);
    14551455    connect(m_pSearchEngine, &QHelpSearchEngine::indexingFinished,
    1456             this, &UIHelpBrowserWidget::sltHandleIndexingFinished);
     1456            this, &UIHelpBrowserWidget::sltIndexingFinished);
    14571457    connect(m_pSearchEngine, &QHelpSearchEngine::searchingStarted,
    1458             this, &UIHelpBrowserWidget::sltHandleSearchingStarted);
     1458            this, &UIHelpBrowserWidget::sltSearchingStarted);
    14591459
    14601460    m_pSearchEngine->reindexDocumentation();
     
    16731673}
    16741674
    1675 void UIHelpBrowserWidget::sltHandleWidgetVisibilityToggle(bool fToggled)
     1675void UIHelpBrowserWidget::sltWidgetVisibilityToggle(bool fToggled)
    16761676{
    16771677    if (sender() == m_pShowHideSideBarAction)
     
    17291729}
    17301730
    1731 void UIHelpBrowserWidget::sltHandleHelpEngineSetupFinished()
     1731void UIHelpBrowserWidget::sltHelpEngineSetupFinished()
    17321732{
    17331733    AssertReturnVoid(m_pTabManager);
     
    17361736}
    17371737
    1738 void UIHelpBrowserWidget::sltHandleContentWidgetItemClicked(const QModelIndex & index)
     1738void UIHelpBrowserWidget::sltContentWidgetItemClicked(const QModelIndex & index)
    17391739{
    17401740    AssertReturnVoid(m_pTabManager && m_pHelpEngine && m_pContentWidget);
     
    17651765}
    17661766
    1767 void UIHelpBrowserWidget::sltHandleContentsCreated()
     1767void UIHelpBrowserWidget::sltContentsCreated()
    17681768{
    17691769    m_fModelContentCreated = true;
     
    17721772}
    17731773
    1774 void UIHelpBrowserWidget::sltHandleIndexingStarted()
     1774void UIHelpBrowserWidget::sltIndexingStarted()
    17751775{
    17761776    if (m_pSearchContainerWidget)
     
    17781778}
    17791779
    1780 void UIHelpBrowserWidget::sltHandleIndexingFinished()
     1780void UIHelpBrowserWidget::sltIndexingFinished()
    17811781{
    17821782    AssertReturnVoid(m_pTabManager &&
     
    17931793}
    17941794
    1795 void UIHelpBrowserWidget::sltHandleSearchingStarted()
    1796 {
    1797 }
    1798 
    1799 void UIHelpBrowserWidget::sltHandleSearchStart()
     1795void UIHelpBrowserWidget::sltSearchingStarted()
     1796{
     1797}
     1798
     1799void UIHelpBrowserWidget::sltSearchStart()
    18001800{
    18011801    AssertReturnVoid(m_pSearchEngine && m_pSearchQueryWidget);
     
    19191919    pCloseOtherTabsAction->setEnabled(titles.size() > 1);
    19201920
    1921     connect(pCloseTabAction, &QAction::triggered, m_pTabManager, &UIHelpBrowserTabManager::sltHandleCloseCurrentTab);
    1922     connect(pCloseOtherTabsAction, &QAction::triggered, m_pTabManager, &UIHelpBrowserTabManager::sltHandleCloseOtherTabs);
     1921    connect(pCloseTabAction, &QAction::triggered, m_pTabManager, &UIHelpBrowserTabManager::sltCloseCurrentTab);
     1922    connect(pCloseOtherTabsAction, &QAction::triggered, m_pTabManager, &UIHelpBrowserTabManager::sltCloseOtherTabs);
    19231923
    19241924    m_pTabsMenu->addSeparator();
     
    19281928        QAction *pAction = m_pTabsMenu->addAction(titles[i]);
    19291929        pAction->setData(i);
    1930         connect(pAction, &QAction::triggered, this, &UIHelpBrowserWidget::sltHandleTabChoose);
     1930        connect(pAction, &QAction::triggered, this, &UIHelpBrowserWidget::sltTabChoose);
    19311931    }
    19321932    if (m_pTabManager)
    1933         sltHandleCurrentTabChanged(m_pTabManager->currentIndex());
     1933        sltCurrentTabChanged(m_pTabManager->currentIndex());
    19341934}
    19351935
     
    19401940}
    19411941
    1942 void UIHelpBrowserWidget::sltHandleZoomActions(int iZoomOperation)
     1942void UIHelpBrowserWidget::sltZoomActions(int iZoomOperation)
    19431943{
    19441944    if (iZoomOperation >= (int) UIHelpViewer::ZoomOperation_Max)
    19451945        return;
    19461946    UIHelpViewer::ZoomOperation enmOperation = (UIHelpViewer::ZoomOperation)(iZoomOperation);
    1947     m_pTabManager->sltHandleZoomOperation(enmOperation);
    1948 }
    1949 
    1950 void UIHelpBrowserWidget::sltHandleTabListChanged(const QStringList &titleList)
     1947    m_pTabManager->sltZoomOperation(enmOperation);
     1948}
     1949
     1950void UIHelpBrowserWidget::sltTabListChanged(const QStringList &titleList)
    19511951{
    19521952    updateTabsMenu(titleList);
    19531953}
    19541954
    1955 void UIHelpBrowserWidget::sltHandleTabChoose()
     1955void UIHelpBrowserWidget::sltTabChoose()
    19561956{
    19571957    QAction *pAction = qobject_cast<QAction*>(sender());
     
    19631963}
    19641964
    1965 void UIHelpBrowserWidget::sltHandleCurrentTabChanged(int iIndex)
     1965void UIHelpBrowserWidget::sltCurrentTabChanged(int iIndex)
    19661966{
    19671967    Q_UNUSED(iIndex);
  • trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserWidget.h

    r88522 r88526  
    7676private slots:
    7777
    78     void sltHandleHelpEngineSetupFinished();
    79     void sltHandleContentWidgetItemClicked(const QModelIndex &index);
    80     void sltHandleWidgetVisibilityToggle(bool togggled);
     78    void sltHelpEngineSetupFinished();
     79    void sltContentWidgetItemClicked(const QModelIndex &index);
     80    void sltWidgetVisibilityToggle(bool togggled);
    8181    void sltShowPrintDialog();
    82     void sltHandleContentsCreated();
    83     void sltHandleIndexingStarted();
    84     void sltHandleIndexingFinished();
    85     void sltHandleSearchingStarted();
    86     void sltHandleSearchStart();
     82    void sltContentsCreated();
     83    void sltIndexingStarted();
     84    void sltIndexingFinished();
     85    void sltSearchingStarted();
     86    void sltSearchStart();
    8787    void sltViewerSourceChange(const QUrl &source);
    8888    void sltOpenLinkWithUrl(const QUrl &url);
     
    9292    void sltCopyLink();
    9393    void sltAddNewBookmark(const QUrl &url, const QString &strTitle);
    94     void sltHandleZoomActions(int iZoomOperation);
    95     void sltHandleTabListChanged(const QStringList &titleList);
    96     void sltHandleTabChoose();
    97     void sltHandleCurrentTabChanged(int iIndex);
     94    void sltZoomActions(int iZoomOperation);
     95    void sltTabListChanged(const QStringList &titleList);
     96    void sltTabChoose();
     97    void sltCurrentTabChanged(int iIndex);
    9898    void sltZoomPercentageChanged(int iPercentage);
    9999    void sltCopySelectedText();
  • trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpViewer.cpp

    r88522 r88526  
    345345    setUndoRedoEnabled(true);
    346346    connect(m_pFindInPageWidget, &UIFindInPageWidget::sigDragging,
    347             this, &UIHelpViewer::sltHandleFindWidgetDrag);
     347            this, &UIHelpViewer::sltFindWidgetDrag);
    348348    connect(m_pFindInPageWidget, &UIFindInPageWidget::sigSearchTextChanged,
    349             this, &UIHelpViewer::sltHandleFindInPageSearchTextChange);
     349            this, &UIHelpViewer::sltFindInPageSearchTextChange);
    350350
    351351    connect(m_pFindInPageWidget, &UIFindInPageWidget::sigSelectPreviousMatch,
     
    545545    QAction *pOpenLinkAction = new QAction(UIHelpBrowserWidget::tr("Open Link"));
    546546    connect(pOpenLinkAction, &QAction::triggered,
    547             this, &UIHelpViewer::sltHandleOpenLink);
     547            this, &UIHelpViewer::sltOpenLink);
    548548
    549549    QAction *pOpenInNewTabAction = new QAction(UIHelpBrowserWidget::tr("Open Link in New Tab"));
    550550    connect(pOpenInNewTabAction, &QAction::triggered,
    551             this, &UIHelpViewer::sltHandleOpenLinkInNewTab);
     551            this, &UIHelpViewer::sltOpenLinkInNewTab);
    552552
    553553    QAction *pCopyLink = new QAction(UIHelpBrowserWidget::tr("Copy Link"));
    554554    connect(pCopyLink, &QAction::triggered,
    555             this, &UIHelpViewer::sltHandleCopyLink);
     555            this, &UIHelpViewer::sltCopyLink);
    556556
    557557    QAction *pFindInPage = new QAction(UIHelpBrowserWidget::tr("Find in Page"));
     
    821821}
    822822
    823 void UIHelpViewer::sltHandleOpenLinkInNewTab()
     823void UIHelpViewer::sltOpenLinkInNewTab()
    824824{
    825825    QAction *pSender = qobject_cast<QAction*>(sender());
     
    831831}
    832832
    833 void UIHelpViewer::sltHandleOpenLink()
     833void UIHelpViewer::sltOpenLink()
    834834{
    835835    QAction *pSender = qobject_cast<QAction*>(sender());
     
    841841}
    842842
    843 void UIHelpViewer::sltHandleCopyLink()
     843void UIHelpViewer::sltCopyLink()
    844844{
    845845    QAction *pSender = qobject_cast<QAction*>(sender());
     
    855855}
    856856
    857 void UIHelpViewer::sltHandleFindWidgetDrag(const QPoint &delta)
     857void UIHelpViewer::sltFindWidgetDrag(const QPoint &delta)
    858858{
    859859    if (!m_pFindInPageWidget)
     
    869869}
    870870
    871 void UIHelpViewer::sltHandleFindInPageSearchTextChange(const QString &strSearchText)
     871void UIHelpViewer::sltFindInPageSearchTextChange(const QString &strSearchText)
    872872{
    873873    m_iSearchTermLength = strSearchText.length();
    874874    findAllMatches(strSearchText);
    875875    highlightFinds(m_iSearchTermLength);
    876     //scrollToMatch(int iMatchIndex);
    877876    selectMatch(0, m_iSearchTermLength);
    878877    if (m_pFindInPageWidget)
  • trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpViewer.h

    r88522 r88526  
    9292private slots:
    9393
    94     void sltHandleOpenLinkInNewTab();
    95     void sltHandleOpenLink();
    96     void sltHandleCopyLink();
    97     void sltHandleFindWidgetDrag(const QPoint &delta);
    98     void sltHandleFindInPageSearchTextChange(const QString &strSearchText);
     94    void sltOpenLinkInNewTab();
     95    void sltOpenLink();
     96    void sltCopyLink();
     97    void sltFindWidgetDrag(const QPoint &delta);
     98    void sltFindInPageSearchTextChange(const QString &strSearchText);
    9999    void sltSelectPreviousMatch();
    100100    void sltSelectNextMatch();
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