Changeset 86928 in vbox
- Timestamp:
- Nov 20, 2020 9:22:25 AM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/cloud/profilemanager/UICloudProfileManager.cpp
r86696 r86928 1008 1008 button(ButtonType_Apply)->setVisible(gEDataManager->cloudProfileManagerDetailsExpanded()); 1009 1009 button(ButtonType_Reset)->setVisible(gEDataManager->cloudProfileManagerDetailsExpanded()); 1010 1011 configureButtonBoxHelpButton("ovf-cloud-profile-manager"); 1010 1012 } 1011 1013 -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIManagerDialog.cpp
r86833 r86928 27 27 #include "UICommon.h" 28 28 #include "UIDesktopWidgetWatchdog.h" 29 #include "UIMessageCenter.h" 29 30 #ifdef VBOX_WS_MAC 30 31 # include "QIToolBar.h" … … 75 76 m_fCloseEmitted = true; 76 77 emit sigClose(); 78 } 79 } 80 81 void QIManagerDialog::configureButtonBoxHelpButton(const QString &strHelpTag) 82 { 83 QPushButton *pHelpButton = m_pButtonBox->button(QDialogButtonBox::Help); 84 if (pHelpButton) 85 { 86 pHelpButton->setProperty("helptag", strHelpTag); 87 connect(pHelpButton, &QPushButton::pressed, 88 &(msgCenter()), &UIMessageCenter::sltHandleDialogHelpButtonPress); 77 89 } 78 90 } … … 155 167 /* Configure button-box: */ 156 168 #ifdef VBOX_WS_WIN 157 m_pButtonBox->setStandardButtons(QDialogButtonBox::Reset | QDialogButtonBox::Save | QDialogButtonBox::Close );169 m_pButtonBox->setStandardButtons(QDialogButtonBox::Reset | QDialogButtonBox::Save | QDialogButtonBox::Close | QDialogButtonBox::Help); 158 170 #else 159 m_pButtonBox->setStandardButtons(QDialogButtonBox::Reset | QDialogButtonBox::Apply | QDialogButtonBox::Close );171 m_pButtonBox->setStandardButtons(QDialogButtonBox::Reset | QDialogButtonBox::Apply | QDialogButtonBox::Close | QDialogButtonBox::Help); 160 172 #endif 161 173 m_buttons[ButtonType_Reset] = m_pButtonBox->button(QDialogButtonBox::Reset); -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIManagerDialog.h
r86833 r86928 150 150 virtual void closeEvent(QCloseEvent *pEvent) /* override */; 151 151 /** @} */ 152 /** Sets the property 'helptag' of the button box's help button to @param strHelpTag and 153 * sets up the appropirate connection. */ 154 void configureButtonBoxHelpButton(const QString &strHelpTag); 152 155 153 156 private: -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r86913 r86928 3236 3236 #elif defined (VBOX_WS_X11) 3237 3237 # if defined(VBOX_WITH_DOCS_QHELP) && (QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)) 3238 showHelpBrowser(strLocation , QString());3238 showHelpBrowser(strLocation); 3239 3239 # elif !defined(VBOX_OSE) 3240 3240 char szViewerPath[RTPATH_MAX]; … … 3435 3435 } 3436 3436 3437 void UIMessageCenter::showHelpBrowser(const QString &strHelpFilePath, const QString &strKeyword,QWidget *pParent /* = 0 */)3437 void UIMessageCenter::showHelpBrowser(const QString &strHelpFilePath, QWidget *pParent /* = 0 */) 3438 3438 { 3439 3439 Q_UNUSED(pParent); … … 3450 3450 connect(m_pHelpBrowserDialog, &QIManagerDialog::sigClose, 3451 3451 this, &UIMessageCenter::sltCloseHelpBrowser); 3452 }3453 if (!strKeyword.isEmpty())3454 {3455 UIHelpBrowserDialog *pWidget = qobject_cast<UIHelpBrowserDialog*>(m_pHelpBrowserDialog);3456 if (pWidget)3457 pWidget->showHelpForKeyword(strKeyword);3458 3452 } 3459 3453 … … 3494 3488 } 3495 3489 3496 showHelpBrowser(uiCommon().helpFile(), strKeyword); 3490 showHelpBrowser(uiCommon().helpFile()); 3491 3492 UIHelpBrowserDialog *pWidget = qobject_cast<UIHelpBrowserDialog*>(m_pHelpBrowserDialog); 3493 if (pWidget) 3494 pWidget->showHelpForKeyword(strKeyword); 3497 3495 # endif /* #if defined(VBOX_WITH_DOCS_QHELP) && (QT_VERSION >= QT_VERSION_CHECK(5, 9, 0))&& (QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)) */ 3498 3496 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r86913 r86928 605 605 const QString &strButtonText1, const QString &strButtonText2, const QString &strButtonText3, 606 606 const QString &strAutoConfirmId) const; 607 /** @param strKeyword is passed possbily from a hrlp button and used by QHelpEngine infrastructure to find a 608 * corresponding Url. */ 609 void showHelpBrowser(const QString &strHelpFilePath, const QString &strKeyword, QWidget *pParent = 0); 607 void showHelpBrowser(const QString &strHelpFilePath, QWidget *pParent = 0); 610 608 611 609 /** Holds the list of shown warnings. */ -
trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork/UIHostNetworkManager.cpp
r86233 r86928 1049 1049 button(ButtonType_Apply)->setVisible(gEDataManager->hostNetworkManagerDetailsExpanded()); 1050 1050 button(ButtonType_Reset)->setVisible(gEDataManager->hostNetworkManagerDetailsExpanded()); 1051 1052 configureButtonBoxHelpButton("networkingdetails"); 1051 1053 } 1052 1054 -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.cpp
r86233 r86928 1722 1722 widget()->setProgressBar(m_pProgressBar); 1723 1723 } 1724 configureButtonBoxHelpButton("vdis"); 1724 1725 } 1725 1726 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportApp.cpp
r86924 r86928 238 238 } 239 239 } 240 enableHelpButton("ovf"); 240 241 if (!m_fFastTraverToExportOCI) 242 enableHelpButton("ovf"); 243 else 244 enableHelpButton("cloud-export-oci"); 245 241 246 /* Call to base-class: */ 242 247 UIWizard::prepare();
Note:
See TracChangeset
for help on using the changeset viewer.