VirtualBox

Changeset 86998 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Nov 26, 2020 5:26:38 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9831. Some refactoring.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/UITakeSnapshotDialog.cpp

    r86991 r86998  
    299299                    this, &UITakeSnapshotDialog::reject);
    300300            connect(m_pButtonBox->button(QIDialogButtonBox::Help), &QPushButton::pressed,
    301                     &(msgCenter()), &UIMessageCenter::sltHandleDialogHelpButtonPress);
     301                    &(msgCenter()), &UIMessageCenter::sltHandleHelpRequest);
    302302            m_pButtonBox->button(QDialogButtonBox::Help)->setShortcut(Qt::Key_F1);
    303303            uiCommon().setHelpKeyword(m_pButtonBox->button(QIDialogButtonBox::Help), "snapshots");
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIManagerDialog.cpp

    r86986 r86998  
    187187        /* Connections to enable the context sensitive help: */
    188188        connect(m_pButtonBox, &QDialogButtonBox::helpRequested, this, &QIManagerDialog::sltHandleHelpRequested);
    189         connect(this, &QIManagerDialog::sigHelpRequested, &msgCenter(), &UIMessageCenter::sltHandleHelpRequest);
     189        connect(this, &QIManagerDialog::sigHelpRequested, &msgCenter(), &UIMessageCenter::sltHandleHelpRequestWithKeyword);
    190190
    191191        /* Configure button-box: */
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp

    r86996 r86998  
    34603460}
    34613461
    3462 void UIMessageCenter::sltHandleDialogHelpButtonPress()
     3462void UIMessageCenter::sltHandleHelpRequest()
    34633463{
    34643464# if defined(VBOX_WITH_DOCS_QHELP) && (QT_VERSION >= QT_VERSION_CHECK(5, 9, 0))
    3465     sltHandleHelpRequest(uiCommon().helpKeyword(sender()));
     3465    sltHandleHelpRequestWithKeyword(uiCommon().helpKeyword(sender()));
    34663466#endif /* #if defined(VBOX_WITH_DOCS_QHELP) && (QT_VERSION >= QT_VERSION_CHECK(5, 9, 0))&& (QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)) */
    34673467}
    34683468
    3469 void UIMessageCenter::sltHandleHelpRequest(const QString &strHelpKeyword)
     3469void UIMessageCenter::sltHandleHelpRequestWithKeyword(const QString &strHelpKeyword)
    34703470{
    34713471# 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  
    554554    void sltShowUserManual(const QString &strLocation);
    555555    void sltHelpBrowserClosed();
    556     void sltHandleDialogHelpButtonPress();
    557     void sltHandleHelpRequest(const QString &strHelpKeyword);
     556    void sltHandleHelpRequest();
     557    void sltHandleHelpRequestWithKeyword(const QString &strHelpKeyword);
    558558
    559559private slots:
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIVMCloseDialog.cpp

    r86943 r86998  
    513513        connect(pButtonBox, &QIDialogButtonBox::rejected, this, &UIVMCloseDialog::reject);
    514514        connect(pButtonBox->button(QIDialogButtonBox::Help), &QPushButton::pressed,
    515                 &msgCenter(), &UIMessageCenter::sltHandleDialogHelpButtonPress);
     515                &msgCenter(), &UIMessageCenter::sltHandleHelpRequest);
    516516        pButtonBox->button(QIDialogButtonBox::Help)->setProperty("helptag", "intro-save-machine-state");
    517517
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp

    r86995 r86998  
    266266        connect(m_pButtonBox, &QIDialogButtonBox::rejected, this, &UIVMInformationDialog::close);
    267267        connect(m_pButtonBox->button(QDialogButtonBox::Help), &QPushButton::pressed,
    268                 &(msgCenter()), &UIMessageCenter::sltHandleDialogHelpButtonPress);
     268                &(msgCenter()), &UIMessageCenter::sltHandleHelpRequest);
    269269        /* add button-box into main-layout: */
    270270        centralWidget()->layout()->addWidget(m_pButtonBox);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialog.cpp

    r86986 r86998  
    780780    QObject::connect(m_pButtonBox, &QIDialogButtonBox::accepted, this, &UISettingsDialog::accept);
    781781    connect(m_pButtonBox->button(QDialogButtonBox::Help), &QAbstractButton::pressed,
    782                                  &(msgCenter()), &UIMessageCenter::sltHandleDialogHelpButtonPress);
     782                                 &(msgCenter()), &UIMessageCenter::sltHandleHelpRequest);
    783783}
    784784
  • trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp

    r86995 r86998  
    42164216    connect(m_pSettingsWidget, &UISoftKeyboardSettingsWidget::sigColorThemeSelectionChanged, this, &UISoftKeyboard::sltHandleColorThemeListSelection);
    42174217
    4218     connect(this, &UISoftKeyboard::sigHelpRequested, &msgCenter(), &UIMessageCenter::sltHandleDialogHelpButtonPress);
     4218    connect(this, &UISoftKeyboard::sigHelpRequested, &msgCenter(), &UIMessageCenter::sltHandleHelpRequest);
    42194219}
    42204220
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/UIWizard.cpp

    r86986 r86998  
    274274    if (button(QWizard::HelpButton))
    275275        button(QWizard::HelpButton)->setShortcut(Qt::Key_F1);
    276     connect(this, &UIWizard::helpRequested, &msgCenter(), &UIMessageCenter::sltHandleDialogHelpButtonPress);
     276    connect(this, &UIWizard::helpRequested, &msgCenter(), &UIMessageCenter::sltHandleHelpRequest);
    277277}
    278278
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