Changeset 89410 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- May 31, 2021 5:53:35 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
r89409 r89410 190 190 void sigZoomPercentageChanged(int iPercentage); 191 191 void sigFindInPageWidgetVisibilityChanged(bool fVisible); 192 void sigHistoryChanged(bool fBackwardAvailable, bool fForwardAvailable); 192 193 193 194 public: … … 269 270 void sigCopyAvailableChanged(bool fAvailable); 270 271 void sigFindInPageWidgetVisibilityChanged(bool fVisible); 272 void sigHistoryChanged(bool fBackwardAvailable, bool fForwardAvailable); 271 273 272 274 public: … … 839 841 840 842 emit sigTitleUpdate(m_pContentViewer->historyTitle(0)); 843 emit sigHistoryChanged(m_pContentViewer->isBackwardAvailable(), m_pContentViewer->isForwardAvailable()); 841 844 } 842 845 … … 926 929 connect(pTabWidget, &UIHelpBrowserTab::sigFindInPageWidgetVisibilityChanged, 927 930 this, &UIHelpBrowserTabManager::sigFindInPageWidgetVisibilityChanged); 931 connect(pTabWidget, &UIHelpBrowserTab::sigHistoryChanged, 932 this, &UIHelpBrowserTabManager::sigHistoryChanged); 933 934 928 935 929 936 pTabWidget->setZoomPercentage(zoomPercentage()); … … 1464 1471 connect(m_pBackwardAction, &QAction::triggered, 1465 1472 this, &UIHelpBrowserWidget::sigGoBackward); 1473 m_pBackwardAction->setEnabled(false); 1466 1474 1467 1475 m_pForwardAction = new QAction(this); 1468 1476 connect(m_pForwardAction, &QAction::triggered, 1469 1477 this, &UIHelpBrowserWidget::sigGoForward); 1478 m_pForwardAction->setEnabled(false); 1470 1479 1471 1480 m_pHomeAction = new QAction(this); … … 1552 1561 connect(m_pTabManager, &UIHelpBrowserTabManager::sigFindInPageWidgetVisibilityChanged, 1553 1562 this, &UIHelpBrowserWidget::sltFindInPageWidgetVisibilityChanged); 1563 connect(m_pTabManager, &UIHelpBrowserTabManager::sigHistoryChanged, 1564 this, &UIHelpBrowserWidget::sltHistoryChanged); 1565 1554 1566 1555 1567 connect(m_pHelpEngine, &QHelpEngine::setupFinished, … … 1879 1891 } 1880 1892 1893 void UIHelpBrowserWidget::sltHistoryChanged(bool fBackwardAvailable, bool fForwardAvailable) 1894 { 1895 if (m_pBackwardAction) 1896 m_pBackwardAction->setEnabled(fBackwardAvailable); 1897 if (m_pForwardAction) 1898 m_pForwardAction->setEnabled(fForwardAvailable); 1899 } 1900 1881 1901 void UIHelpBrowserWidget::sltCopyAvailableChanged(bool fAvailable) 1882 1902 { -
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserWidget.h
r89409 r89410 110 110 void sltFindNextInPage(); 111 111 void sltFindPreviousInPage(); 112 void sltHistoryChanged(bool fBackwardAvailable, bool fForwardAvailable); 112 113 113 114 private:
Note:
See TracChangeset
for help on using the changeset viewer.