- Timestamp:
- May 31, 2021 10:14:43 AM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/VirtualBox1.qrc
r87420 r89390 398 398 <file alias="help_browser_search.png">images/help_browser_search.png</file> 399 399 <file alias="help_browser_star_16px.png">images/help_browser_star_16px.png</file> 400 <file alias="help_browser_reload_32px.png">images/help_browser_reload_32px.png</file> 400 401 <file alias="help_16px.png">images/help_16px.png</file> 401 402 <file alias="help_button_normal_mac_24px.png">images/help_button_normal_mac_24px.png</file> -
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserWidget.cpp
r89353 r89390 225 225 void sltAnchorClicked(const QUrl &link); 226 226 void sltFindInPageWidgetVisibilityChanged(bool fVisible); 227 void sltReloadPageAction(); 227 228 228 229 private: … … 239 240 QAction *m_pAddBookmarkAction; 240 241 QAction *m_pFindInPageAction; 242 QAction *m_pReloadPageAction; 241 243 242 244 QVBoxLayout *m_pMainLayout; … … 716 718 m_pFindInPageAction = 717 719 new QAction(UIIconPool::iconSet(":/help_browser_search.png"), QString(), this); 720 m_pReloadPageAction = 721 new QAction(UIIconPool::iconSet(":/help_browser_reload_32px.png"), QString(), this); 718 722 719 723 AssertReturnVoid(m_pHomeAction && m_pForwardAction && … … 727 731 connect(m_pBackwardAction, &QAction::triggered, this, &UIHelpBrowserTab::sltBackwardAction); 728 732 connect(m_pFindInPageAction, &QAction::toggled, this, &UIHelpBrowserTab::sltFindInPageAction); 733 connect(m_pReloadPageAction, &QAction::triggered, this, &UIHelpBrowserTab::sltReloadPageAction); 729 734 730 735 m_pForwardAction->setEnabled(false); … … 736 741 m_pToolBar->addAction(m_pForwardAction); 737 742 m_pToolBar->addAction(m_pHomeAction); 743 m_pToolBar->addAction(m_pReloadPageAction); 738 744 m_pToolBar->addAction(m_pAddBookmarkAction); 739 745 m_pToolBar->addAction(m_pFindInPageAction); … … 791 797 if (m_pContentViewer) 792 798 m_pContentViewer->toggleFindInPageWidget(fToggled); 799 } 800 801 void UIHelpBrowserTab::sltReloadPageAction() 802 { 803 if (m_pContentViewer) 804 m_pContentViewer->reload(); 793 805 } 794 806 -
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpViewer.cpp
r89369 r89390 434 434 m_pFindInPageWidget->setFocus(); 435 435 emit sigFindInPageWidgetToogle(fVisible); 436 } 437 438 void UIHelpViewer::reload() 439 { 440 setSource(source()); 436 441 } 437 442 -
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpViewer.h
r88550 r89390 66 66 virtual QVariant loadResource(int type, const QUrl &name) /* override */; 67 67 void emitHistoryChangedSignal(); 68 v oid setSource(const QUrl &url) /* override */;68 virtual void setSource(const QUrl &url) /* override */; 69 69 void setFont(const QFont &); 70 70 bool isFindInPageWidgetVisible() const; … … 76 76 static const QPair<int, int> zoomPercentageMinMax; 77 77 void toggleFindInPageWidget(bool fVisible); 78 void reload(); 78 79 79 80 public slots:
Note:
See TracChangeset
for help on using the changeset viewer.