Changeset 89542 in vbox
- Timestamp:
- Jun 7, 2021 9:49:34 AM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserDialog.cpp
r89318 r89542 116 116 connect(m_pWidget, &UIHelpBrowserWidget::sigCloseDialog, 117 117 this, &UIHelpBrowserDialog::close); 118 connect(m_pWidget, &UIHelpBrowserWidget::sig LinkHighlighted,119 this, &UIHelpBrowserDialog::slt LinkHighlighted);118 connect(m_pWidget, &UIHelpBrowserWidget::sigStatusBarMessage, 119 this, &UIHelpBrowserDialog::sltStatusBarMessage); 120 120 connect(m_pWidget, &UIHelpBrowserWidget::sigStatusBarVisible, 121 121 this, &UIHelpBrowserDialog::sltStatusBarVisibilityChange); … … 151 151 } 152 152 153 void UIHelpBrowserDialog::slt LinkHighlighted(const QString& strLink)153 void UIHelpBrowserDialog::sltStatusBarMessage(const QString& strLink, int iTimeOut) 154 154 { 155 statusBar()->showMessage(strLink );155 statusBar()->showMessage(strLink, iTimeOut); 156 156 } 157 157 -
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserDialog.h
r89318 r89542 59 59 private slots: 60 60 61 void slt LinkHighlighted(const QString& strLink);61 void sltStatusBarMessage(const QString& strLink, int iTimeOut); 62 62 void sltStatusBarVisibilityChange(bool fVisible); 63 63 void sltZoomPercentageChanged(int iPercentage); -
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserWidget.cpp
r89539 r89542 1566 1566 this, &UIHelpBrowserWidget::sltCurrentTabChanged); 1567 1567 connect(m_pTabManager, &UIHelpBrowserTabManager::sigLinkHighlighted, 1568 this, &UIHelpBrowserWidget::s igLinkHighlighted);1568 this, &UIHelpBrowserWidget::sltLinkHighlighted); 1569 1569 connect(m_pTabManager, &UIHelpBrowserTabManager::sigZoomPercentageChanged, 1570 1570 this, &UIHelpBrowserWidget::sltZoomPercentageChanged); … … 1911 1911 } 1912 1912 1913 void UIHelpBrowserWidget::sltLinkHighlighted(const QString &strLink) 1914 { 1915 emit sigStatusBarMessage(strLink, 0); 1916 } 1917 1913 1918 void UIHelpBrowserWidget::sltCopyAvailableChanged(bool fAvailable) 1914 1919 { … … 2107 2112 if (m_pBookmarksWidget) 2108 2113 m_pBookmarksWidget->addBookmark(url, strTitle); 2114 Q_UNUSED(url); 2115 emit sigStatusBarMessage(QString("%1%2").arg(tr("Bookmark added: ")).arg(strTitle), 3000); 2109 2116 } 2110 2117 -
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserWidget.h
r89410 r89542 56 56 57 57 void sigCloseDialog(); 58 void sigLinkHighlighted(const QString &strLink);59 58 void sigStatusBarVisible(bool fToggled); 60 59 void sigZoomPercentageChanged(int iPercentage); … … 64 63 void sigReloadPage(); 65 64 void sigAddBookmark(); 66 65 void sigStatusBarMessage(const QString &strMessage, int iTimeOut); 67 66 public: 68 67 … … 111 110 void sltFindPreviousInPage(); 112 111 void sltHistoryChanged(bool fBackwardAvailable, bool fForwardAvailable); 112 void sltLinkHighlighted(const QString &strLink); 113 113 114 114 private:
Note:
See TracChangeset
for help on using the changeset viewer.