Changeset 95068 in vbox
- Timestamp:
- May 24, 2022 8:04:24 AM (3 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
r94064 r95068 804 804 setActionTextAndToolTip(m_pHomeAction, tr("Home"), tr("Return to Start Page")); 805 805 setActionTextAndToolTip(m_pBackwardAction, tr("Backward"), tr("Go Back to Previous Page")); 806 setActionTextAndToolTip(m_pForwardAction, tr("Forward"), tr("Go F roward to Next Page"));806 setActionTextAndToolTip(m_pForwardAction, tr("Forward"), tr("Go Forward to Next Page")); 807 807 setActionTextAndToolTip(m_pAddBookmarkAction, tr("Add Bookmark"), tr("Add a New Bookmark")); 808 808 setActionTextAndToolTip(m_pReloadPageAction, tr("Reload"), tr("Reload the Current Page")); -
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpViewer.cpp
r94064 r95068 80 80 void setForwardAvailable(bool fAvailable); 81 81 82 private slots: 83 84 void sltGoBackward(); 85 void sltGoForward(); 86 void sltGoHome(); 87 void sltReloadPage(); 88 void sltAddBookmark(); 89 82 90 private: 83 91 … … 156 164 } 157 165 166 void UIContextMenuNavigationAction::sltGoBackward() 167 { 168 emit sigGoBackward(); 169 emit triggered(); 170 } 171 172 void UIContextMenuNavigationAction::sltGoForward() 173 { 174 emit sigGoForward(); 175 emit triggered(); 176 } 177 178 void UIContextMenuNavigationAction::sltGoHome() 179 { 180 emit sigGoHome(); 181 emit triggered(); 182 } 183 184 void UIContextMenuNavigationAction::sltReloadPage() 185 { 186 emit sigReloadPage(); 187 emit triggered(); 188 } 189 190 void UIContextMenuNavigationAction::sltAddBookmark() 191 { 192 emit sigAddBookmark(); 193 emit triggered(); 194 } 195 158 196 void UIContextMenuNavigationAction::prepare() 159 197 { … … 182 220 m_pAddBookmarkButton->setIcon(UIIconPool::iconSet(":/help_browser_add_bookmark_16px.png", ":/help_browser_add_bookmark_disabled_16px.png")); 183 221 222 m_pHomeButton->setToolTip(tr("Return to Start Page")); 223 m_pReloadPageButton->setToolTip(tr("Reload the Current Page")); 224 m_pForwardButton->setToolTip(tr("Go Forward to Next Page")); 225 m_pBackwardButton->setToolTip(tr("Go Back to Previous Page")); 226 m_pAddBookmarkButton->setToolTip(tr("Add a New Bookmark")); 227 184 228 pMainLayout->addWidget(m_pBackwardButton); 185 229 pMainLayout->addWidget(m_pForwardButton); … … 190 234 191 235 connect(m_pBackwardButton, &QIToolButton::pressed, 192 this, &UIContextMenuNavigationAction::s igGoBackward);236 this, &UIContextMenuNavigationAction::sltGoBackward); 193 237 connect(m_pForwardButton, &QIToolButton::pressed, 194 this, &UIContextMenuNavigationAction::s igGoForward);238 this, &UIContextMenuNavigationAction::sltGoForward); 195 239 connect(m_pHomeButton, &QIToolButton::pressed, 196 this, &UIContextMenuNavigationAction::s igGoHome);240 this, &UIContextMenuNavigationAction::sltGoHome); 197 241 connect(m_pReloadPageButton, &QIToolButton::pressed, 198 this, &UIContextMenuNavigationAction::s igReloadPage);242 this, &UIContextMenuNavigationAction::sltReloadPage); 199 243 connect(m_pAddBookmarkButton, &QIToolButton::pressed, 200 this, &UIContextMenuNavigationAction::s igAddBookmark);244 this, &UIContextMenuNavigationAction::sltAddBookmark); 201 245 connect(m_pReloadPageButton, &QIToolButton::pressed, 202 this, &UIContextMenuNavigationAction::s igAddBookmark);246 this, &UIContextMenuNavigationAction::sltAddBookmark); 203 247 } 204 248
Note:
See TracChangeset
for help on using the changeset viewer.