VirtualBox

Changeset 87498 in vbox for trunk/src


Ignore:
Timestamp:
Feb 1, 2021 12:16:56 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142522
Message:

FE/Qt: bugfix:9923. Disabling help button for global and machine settings.

File:
1 edited

Legend:

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

    r87001 r87498  
    117117void UISettingsDialog::sltCategoryChanged(int cId)
    118118{
     119#ifndef VBOX_WS_MAC
    119120    if (m_pButtonBox)
    120121        uiCommon().setHelpKeyword(m_pButtonBox->button(QDialogButtonBox::Help), m_pageHelpKeywords[cId]);
     122#endif
    121123    const int iIndex = m_pages.value(cId);
    122124
     
    769771    m_pButtonBox = new QIDialogButtonBox(pCentralWidget);
    770772    m_pButtonBox->setObjectName(QStringLiteral("m_pButtonBox"));
     773#ifndef VBOX_WS_MAC
    771774    m_pButtonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|
    772775                                     QDialogButtonBox::Ok| QDialogButtonBox::Help);
    773776    m_pButtonBox->button(QDialogButtonBox::Help)->setShortcut(QKeySequence::HelpContents);
    774 
     777#else
     778    m_pButtonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|
     779                                     QDialogButtonBox::Ok);
     780#endif
    775781    pMainLayout->addWidget(m_pButtonBox, 2, 0, 1, 2);
    776782
     
    779785    QObject::connect(m_pButtonBox, &QIDialogButtonBox::rejected, this, &UISettingsDialog::reject);
    780786    QObject::connect(m_pButtonBox, &QIDialogButtonBox::accepted, this, &UISettingsDialog::accept);
     787#ifndef VBOX_WS_MAC
    781788    connect(m_pButtonBox->button(QDialogButtonBox::Help), &QAbstractButton::pressed,
    782789                                 &(msgCenter()), &UIMessageCenter::sltHandleHelpRequest);
     790#endif
    783791}
    784792
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette