VirtualBox

Changeset 89390 in vbox for trunk


Ignore:
Timestamp:
May 31, 2021 10:14:43 AM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9831. Adding page reload action

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/VirtualBox1.qrc

    r87420 r89390  
    398398        <file alias="help_browser_search.png">images/help_browser_search.png</file>
    399399        <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>
    400401        <file alias="help_16px.png">images/help_16px.png</file>
    401402        <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  
    225225    void sltAnchorClicked(const QUrl &link);
    226226    void sltFindInPageWidgetVisibilityChanged(bool  fVisible);
     227    void sltReloadPageAction();
    227228
    228229private:
     
    239240    QAction     *m_pAddBookmarkAction;
    240241    QAction     *m_pFindInPageAction;
     242    QAction     *m_pReloadPageAction;
    241243
    242244    QVBoxLayout *m_pMainLayout;
     
    716718    m_pFindInPageAction =
    717719        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);
    718722
    719723    AssertReturnVoid(m_pHomeAction && m_pForwardAction &&
     
    727731    connect(m_pBackwardAction, &QAction::triggered, this, &UIHelpBrowserTab::sltBackwardAction);
    728732    connect(m_pFindInPageAction, &QAction::toggled, this, &UIHelpBrowserTab::sltFindInPageAction);
     733    connect(m_pReloadPageAction, &QAction::triggered, this, &UIHelpBrowserTab::sltReloadPageAction);
    729734
    730735    m_pForwardAction->setEnabled(false);
     
    736741    m_pToolBar->addAction(m_pForwardAction);
    737742    m_pToolBar->addAction(m_pHomeAction);
     743    m_pToolBar->addAction(m_pReloadPageAction);
    738744    m_pToolBar->addAction(m_pAddBookmarkAction);
    739745    m_pToolBar->addAction(m_pFindInPageAction);
     
    791797    if (m_pContentViewer)
    792798        m_pContentViewer->toggleFindInPageWidget(fToggled);
     799}
     800
     801void UIHelpBrowserTab::sltReloadPageAction()
     802{
     803    if (m_pContentViewer)
     804        m_pContentViewer->reload();
    793805}
    794806
  • trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpViewer.cpp

    r89369 r89390  
    434434        m_pFindInPageWidget->setFocus();
    435435    emit sigFindInPageWidgetToogle(fVisible);
     436}
     437
     438void UIHelpViewer::reload()
     439{
     440    setSource(source());
    436441}
    437442
  • trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpViewer.h

    r88550 r89390  
    6666    virtual QVariant loadResource(int type, const QUrl &name) /* override */;
    6767    void emitHistoryChangedSignal();
    68     void setSource(const QUrl &url) /* override */;
     68    virtual void setSource(const QUrl &url) /* override */;
    6969    void setFont(const QFont &);
    7070    bool isFindInPageWidgetVisible() const;
     
    7676    static const QPair<int, int> zoomPercentageMinMax;
    7777    void toggleFindInPageWidget(bool fVisible);
     78    void reload();
    7879
    7980public slots:
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