VirtualBox

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


Ignore:
Timestamp:
Dec 29, 2023 3:26:50 PM (15 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160900
Message:

FE/Qt: A bit of cleanup for QIManagerDialog.

File:
1 edited

Legend:

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

    r102571 r102728  
    174174    {
    175175        /* Configure button-box: */
     176        m_pButtonBox->setStandardButtons(  QDialogButtonBox::Reset
    176177#ifdef VBOX_WS_WIN
    177         m_pButtonBox->setStandardButtons(QDialogButtonBox::Reset | QDialogButtonBox::Save |  QDialogButtonBox::Close | QDialogButtonBox::Help);
     178                                         | QDialogButtonBox::Save
    178179#else
    179         m_pButtonBox->setStandardButtons(QDialogButtonBox::Reset | QDialogButtonBox::Apply |  QDialogButtonBox::Close | QDialogButtonBox::Help);
    180 #endif
     180                                         | QDialogButtonBox::Apply
     181#endif
     182                                         | QDialogButtonBox::Close
     183                                         | QDialogButtonBox::Help);
    181184        m_buttons[ButtonType_Reset] = m_pButtonBox->button(QDialogButtonBox::Reset);
    182185#ifdef VBOX_WS_WIN
     
    192195        button(ButtonType_Help)->setShortcut(QKeySequence::HelpContents);
    193196
    194         /* Hide 'Reset' and 'Apply' initially: */
     197        /* Hide some of buttons initially: */
    195198        button(ButtonType_Reset)->hide();
    196199        button(ButtonType_Apply)->hide();
    197         /* Disable 'Reset' and 'Apply' initially: */
     200        /* Disable some of buttons initially: */
    198201        button(ButtonType_Reset)->setEnabled(false);
    199202        button(ButtonType_Apply)->setEnabled(false);
     203
     204        /* Configure connections: */
    200205        connect(m_pButtonBox, &QIDialogButtonBox::rejected, this, &QIManagerDialog::close);
    201         /* Connections to enable the context sensitive help: */
    202         connect(m_pButtonBox, &QDialogButtonBox::helpRequested, this, &QIManagerDialog::sltHandleHelpRequested);
     206        connect(m_pButtonBox, &QIDialogButtonBox::helpRequested, this, &QIManagerDialog::sltHandleHelpRequested);
    203207
    204208        /* Configure button-box: */
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