Changeset 45218 in vbox
- Timestamp:
- Mar 27, 2013 7:41:00 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIVMCloseDialog.cpp
r45212 r45218 247 247 m_pDiscardCheckBox = new QCheckBox(this); 248 248 /* Configure layout: */ 249 #ifdef Q_WS_MAC 249 250 pChoiceLayout->setSpacing(15); 251 #else /* Q_WS_MAC */ 252 pChoiceLayout->setSpacing(6); 253 #endif /* !Q_WS_MAC */ 250 254 pChoiceLayout->setContentsMargins(0, 0, 0, 0); 251 255 pChoiceLayout->addWidget(m_pSaveIcon, 0, 0); … … 258 262 } 259 263 /* Configure layout: */ 264 #ifdef Q_WS_MAC 260 265 pTopRightLayout->setSpacing(15); 266 #else /* Q_WS_MAC */ 267 pTopRightLayout->setSpacing(6); 268 #endif /* !Q_WS_MAC */ 261 269 pTopRightLayout->setContentsMargins(0, 0, 0, 0); 262 270 pTopRightLayout->addWidget(m_pLabel); … … 269 277 pTopLayout->addItem(pTopRightLayout); 270 278 } 271 /* Button-box: */279 /* Prepare button-box: */ 272 280 QIDialogButtonBox *pButtonBox = new QIDialogButtonBox(this); 273 281 { 282 /* Configure button-box: */ 274 283 pButtonBox->setStandardButtons(QDialogButtonBox::Cancel | QDialogButtonBox::Help | QDialogButtonBox::NoButton | QDialogButtonBox::Ok); 275 284 connect(pButtonBox, SIGNAL(accepted()), this, SLOT(accept())); … … 279 288 /* Configure layout: */ 280 289 pMainLayout->setSpacing(20); 290 #ifdef Q_WS_MAC 281 291 pMainLayout->setContentsMargins(40, 20, 40, 20); 292 #endif /* Q_WS_MAC */ 282 293 pMainLayout->addItem(pTopLayout); 283 294 pMainLayout->addWidget(pButtonBox);
Note:
See TracChangeset
for help on using the changeset viewer.