Changeset 86998 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 26, 2020 5:26:38 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/UITakeSnapshotDialog.cpp
r86991 r86998 299 299 this, &UITakeSnapshotDialog::reject); 300 300 connect(m_pButtonBox->button(QIDialogButtonBox::Help), &QPushButton::pressed, 301 &(msgCenter()), &UIMessageCenter::sltHandle DialogHelpButtonPress);301 &(msgCenter()), &UIMessageCenter::sltHandleHelpRequest); 302 302 m_pButtonBox->button(QDialogButtonBox::Help)->setShortcut(Qt::Key_F1); 303 303 uiCommon().setHelpKeyword(m_pButtonBox->button(QIDialogButtonBox::Help), "snapshots"); -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIManagerDialog.cpp
r86986 r86998 187 187 /* Connections to enable the context sensitive help: */ 188 188 connect(m_pButtonBox, &QDialogButtonBox::helpRequested, this, &QIManagerDialog::sltHandleHelpRequested); 189 connect(this, &QIManagerDialog::sigHelpRequested, &msgCenter(), &UIMessageCenter::sltHandleHelpRequest );189 connect(this, &QIManagerDialog::sigHelpRequested, &msgCenter(), &UIMessageCenter::sltHandleHelpRequestWithKeyword); 190 190 191 191 /* Configure button-box: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r86996 r86998 3460 3460 } 3461 3461 3462 void UIMessageCenter::sltHandle DialogHelpButtonPress()3462 void UIMessageCenter::sltHandleHelpRequest() 3463 3463 { 3464 3464 # if defined(VBOX_WITH_DOCS_QHELP) && (QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)) 3465 sltHandleHelpRequest (uiCommon().helpKeyword(sender()));3465 sltHandleHelpRequestWithKeyword(uiCommon().helpKeyword(sender())); 3466 3466 #endif /* #if defined(VBOX_WITH_DOCS_QHELP) && (QT_VERSION >= QT_VERSION_CHECK(5, 9, 0))&& (QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)) */ 3467 3467 } 3468 3468 3469 void UIMessageCenter::sltHandleHelpRequest (const QString &strHelpKeyword)3469 void UIMessageCenter::sltHandleHelpRequestWithKeyword(const QString &strHelpKeyword) 3470 3470 { 3471 3471 # if defined(VBOX_WITH_DOCS_QHELP) && (QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)) -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r86986 r86998 554 554 void sltShowUserManual(const QString &strLocation); 555 555 void sltHelpBrowserClosed(); 556 void sltHandle DialogHelpButtonPress();557 void sltHandleHelpRequest (const QString &strHelpKeyword);556 void sltHandleHelpRequest(); 557 void sltHandleHelpRequestWithKeyword(const QString &strHelpKeyword); 558 558 559 559 private slots: -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIVMCloseDialog.cpp
r86943 r86998 513 513 connect(pButtonBox, &QIDialogButtonBox::rejected, this, &UIVMCloseDialog::reject); 514 514 connect(pButtonBox->button(QIDialogButtonBox::Help), &QPushButton::pressed, 515 &msgCenter(), &UIMessageCenter::sltHandle DialogHelpButtonPress);515 &msgCenter(), &UIMessageCenter::sltHandleHelpRequest); 516 516 pButtonBox->button(QIDialogButtonBox::Help)->setProperty("helptag", "intro-save-machine-state"); 517 517 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp
r86995 r86998 266 266 connect(m_pButtonBox, &QIDialogButtonBox::rejected, this, &UIVMInformationDialog::close); 267 267 connect(m_pButtonBox->button(QDialogButtonBox::Help), &QPushButton::pressed, 268 &(msgCenter()), &UIMessageCenter::sltHandle DialogHelpButtonPress);268 &(msgCenter()), &UIMessageCenter::sltHandleHelpRequest); 269 269 /* add button-box into main-layout: */ 270 270 centralWidget()->layout()->addWidget(m_pButtonBox); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialog.cpp
r86986 r86998 780 780 QObject::connect(m_pButtonBox, &QIDialogButtonBox::accepted, this, &UISettingsDialog::accept); 781 781 connect(m_pButtonBox->button(QDialogButtonBox::Help), &QAbstractButton::pressed, 782 &(msgCenter()), &UIMessageCenter::sltHandle DialogHelpButtonPress);782 &(msgCenter()), &UIMessageCenter::sltHandleHelpRequest); 783 783 } 784 784 -
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp
r86995 r86998 4216 4216 connect(m_pSettingsWidget, &UISoftKeyboardSettingsWidget::sigColorThemeSelectionChanged, this, &UISoftKeyboard::sltHandleColorThemeListSelection); 4217 4217 4218 connect(this, &UISoftKeyboard::sigHelpRequested, &msgCenter(), &UIMessageCenter::sltHandle DialogHelpButtonPress);4218 connect(this, &UISoftKeyboard::sigHelpRequested, &msgCenter(), &UIMessageCenter::sltHandleHelpRequest); 4219 4219 } 4220 4220 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/UIWizard.cpp
r86986 r86998 274 274 if (button(QWizard::HelpButton)) 275 275 button(QWizard::HelpButton)->setShortcut(Qt::Key_F1); 276 connect(this, &UIWizard::helpRequested, &msgCenter(), &UIMessageCenter::sltHandle DialogHelpButtonPress);276 connect(this, &UIWizard::helpRequested, &msgCenter(), &UIMessageCenter::sltHandleHelpRequest); 277 277 } 278 278
Note:
See TracChangeset
for help on using the changeset viewer.