- Timestamp:
- Feb 1, 2021 12:16:56 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 142522
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialog.cpp
r87001 r87498 117 117 void UISettingsDialog::sltCategoryChanged(int cId) 118 118 { 119 #ifndef VBOX_WS_MAC 119 120 if (m_pButtonBox) 120 121 uiCommon().setHelpKeyword(m_pButtonBox->button(QDialogButtonBox::Help), m_pageHelpKeywords[cId]); 122 #endif 121 123 const int iIndex = m_pages.value(cId); 122 124 … … 769 771 m_pButtonBox = new QIDialogButtonBox(pCentralWidget); 770 772 m_pButtonBox->setObjectName(QStringLiteral("m_pButtonBox")); 773 #ifndef VBOX_WS_MAC 771 774 m_pButtonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::NoButton| 772 775 QDialogButtonBox::Ok| QDialogButtonBox::Help); 773 776 m_pButtonBox->button(QDialogButtonBox::Help)->setShortcut(QKeySequence::HelpContents); 774 777 #else 778 m_pButtonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::NoButton| 779 QDialogButtonBox::Ok); 780 #endif 775 781 pMainLayout->addWidget(m_pButtonBox, 2, 0, 1, 2); 776 782 … … 779 785 QObject::connect(m_pButtonBox, &QIDialogButtonBox::rejected, this, &UISettingsDialog::reject); 780 786 QObject::connect(m_pButtonBox, &QIDialogButtonBox::accepted, this, &UISettingsDialog::accept); 787 #ifndef VBOX_WS_MAC 781 788 connect(m_pButtonBox->button(QDialogButtonBox::Help), &QAbstractButton::pressed, 782 789 &(msgCenter()), &UIMessageCenter::sltHandleHelpRequest); 790 #endif 783 791 } 784 792
Note:
See TracChangeset
for help on using the changeset viewer.