VirtualBox

Ignore:
Timestamp:
Jun 27, 2017 10:11:01 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
116401
Message:

FE/Qt: Extension: QIManagerDialog: A bit of cross-platform adjustments.

File:
1 edited

Legend:

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

    r67581 r67631  
    140140    {
    141141        /* Configure button-box: */
    142 #ifdef VBOX_WS_MAC
     142#ifdef VBOX_WS_WIN
     143        m_pButtonBox->setStandardButtons(QDialogButtonBox::Reset | QDialogButtonBox::Save |  QDialogButtonBox::Close);
     144#else
    143145        m_pButtonBox->setStandardButtons(QDialogButtonBox::Reset | QDialogButtonBox::Apply |  QDialogButtonBox::Close);
     146#endif
     147        m_buttons[ButtonType_Reset] = m_pButtonBox->button(QDialogButtonBox::Reset);
     148#ifdef VBOX_WS_WIN
     149        m_buttons[ButtonType_Apply] = m_pButtonBox->button(QDialogButtonBox::Save);
    144150#else
    145         m_pButtonBox->setStandardButtons(QDialogButtonBox::Reset | QDialogButtonBox::Save |  QDialogButtonBox::Close);
    146 #endif
    147         m_buttons[ButtonType_Reset] = m_pButtonBox->button(QDialogButtonBox::Reset);
    148 #ifdef VBOX_WS_MAC
    149151        m_buttons[ButtonType_Apply] = m_pButtonBox->button(QDialogButtonBox::Apply);
    150 #else
    151         m_buttons[ButtonType_Apply] = m_pButtonBox->button(QDialogButtonBox::Save);
    152152#endif
    153153        m_buttons[ButtonType_Close] = m_pButtonBox->button(QDialogButtonBox::Close);
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