VirtualBox

Changeset 45218 in vbox


Ignore:
Timestamp:
Mar 27, 2013 7:41:00 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Runtime UI: Close VM dialog platform tuning (part 3).

File:
1 edited

Legend:

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

    r45212 r45218  
    247247                    m_pDiscardCheckBox = new QCheckBox(this);
    248248                    /* Configure layout: */
     249#ifdef Q_WS_MAC
    249250                    pChoiceLayout->setSpacing(15);
     251#else /* Q_WS_MAC */
     252                    pChoiceLayout->setSpacing(6);
     253#endif /* !Q_WS_MAC */
    250254                    pChoiceLayout->setContentsMargins(0, 0, 0, 0);
    251255                    pChoiceLayout->addWidget(m_pSaveIcon, 0, 0);
     
    258262                }
    259263                /* Configure layout: */
     264#ifdef Q_WS_MAC
    260265                pTopRightLayout->setSpacing(15);
     266#else /* Q_WS_MAC */
     267                pTopRightLayout->setSpacing(6);
     268#endif /* !Q_WS_MAC */
    261269                pTopRightLayout->setContentsMargins(0, 0, 0, 0);
    262270                pTopRightLayout->addWidget(m_pLabel);
     
    269277            pTopLayout->addItem(pTopRightLayout);
    270278        }
    271         /* Button-box: */
     279        /* Prepare button-box: */
    272280        QIDialogButtonBox *pButtonBox = new QIDialogButtonBox(this);
    273281        {
     282            /* Configure button-box: */
    274283            pButtonBox->setStandardButtons(QDialogButtonBox::Cancel | QDialogButtonBox::Help | QDialogButtonBox::NoButton | QDialogButtonBox::Ok);
    275284            connect(pButtonBox, SIGNAL(accepted()), this, SLOT(accept()));
     
    279288        /* Configure layout: */
    280289        pMainLayout->setSpacing(20);
     290#ifdef Q_WS_MAC
    281291        pMainLayout->setContentsMargins(40, 20, 40, 20);
     292#endif /* Q_WS_MAC */
    282293        pMainLayout->addItem(pTopLayout);
    283294        pMainLayout->addWidget(pButtonBox);
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