Changeset 79586 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jul 8, 2019 8:09:34 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 131883
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp
r79566 r79586 889 889 m_pSettingsLayout2->addWidget(m_pMachineLabel, 2, 0); 890 890 } 891 /* Create Export Then Ask button: */ 892 m_pRadioExportThenAsk = new QRadioButton; 893 if (m_pRadioExportThenAsk) 894 { 895 m_pRadioExportThenAsk->setEnabled(false); 896 897 /* Add into layout: */ 898 m_pSettingsLayout2->addWidget(m_pRadioExportThenAsk, 2, 1); 899 } 891 900 /* Create Ask Then Export button: */ 892 901 m_pRadioAskThenExport = new QRadioButton; … … 895 904 /* Add into layout: */ 896 905 m_pSettingsLayout2->addWidget(m_pRadioAskThenExport, 3, 1); 897 }898 /* Create Export Then Ask button: */899 m_pRadioExportThenAsk = new QRadioButton;900 if (m_pRadioExportThenAsk)901 {902 m_pRadioExportThenAsk->setEnabled(false);903 904 /* Add into layout: */905 m_pSettingsLayout2->addWidget(m_pRadioExportThenAsk, 2, 1);906 906 } 907 907 /* Create Do Not Ask button: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic2.h
r79567 r79586 234 234 /** Holds the machine label instance. */ 235 235 QLabel *m_pMachineLabel; 236 /** Holds the export then ask radio button instance. */ 237 QRadioButton *m_pRadioExportThenAsk; 236 238 /** Holds the ask then export radio button instance. */ 237 239 QRadioButton *m_pRadioAskThenExport; 238 /** Holds the export then ask radio button instance. */239 QRadioButton *m_pRadioExportThenAsk;240 240 /** Holds the don't ask radio button instance. */ 241 241 QRadioButton *m_pRadioDoNotAsk; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp
r79566 r79586 359 359 const int iTotalWidth = 50 * iFontWidth; 360 360 const int iFontHeight = fm.height(); 361 const int iTotalHeight = 4* iFontHeight;361 const int iTotalHeight = 8 * iFontHeight; 362 362 m_pAccountPropertyTable->setMinimumSize(QSize(iTotalWidth, iTotalHeight)); 363 363 m_pAccountPropertyTable->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored); … … 369 369 /* Add into layout: */ 370 370 m_pSettingsLayout2->addWidget(m_pAccountPropertyTable, 1, 1); 371 } 372 373 /* Create account label: */ 374 m_pMachineLabel = new QLabel; 375 if (m_pMachineLabel) 376 { 377 m_pMachineLabel->setAlignment(Qt::AlignRight | Qt::AlignTrailing | Qt::AlignVCenter); 378 379 /* Add into layout: */ 380 m_pSettingsLayout2->addWidget(m_pMachineLabel, 2, 0); 381 } 382 /* Create Export Then Ask button: */ 383 m_pRadioExportThenAsk = new QRadioButton; 384 if (m_pRadioExportThenAsk) 385 { 386 m_pRadioExportThenAsk->setEnabled(false); 387 388 /* Add into layout: */ 389 m_pSettingsLayout2->addWidget(m_pRadioExportThenAsk, 2, 1); 390 } 391 /* Create Ask Then Export button: */ 392 m_pRadioAskThenExport = new QRadioButton; 393 if (m_pRadioAskThenExport) 394 { 395 /* Add into layout: */ 396 m_pSettingsLayout2->addWidget(m_pRadioAskThenExport, 3, 1); 397 } 398 /* Create Do Not Ask button: */ 399 m_pRadioDoNotAsk = new QRadioButton; 400 if (m_pRadioDoNotAsk) 401 { 402 m_pRadioDoNotAsk->setEnabled(false); 403 404 /* Add into layout: */ 405 m_pSettingsLayout2->addWidget(m_pRadioDoNotAsk, 4, 1); 371 406 } 372 407 } … … 507 542 m_pAccountLabel->setText(UIWizardExportApp::tr("&Account:")); 508 543 544 /* Translate option label: */ 545 m_pMachineLabel->setText(UIWizardExportApp::tr("Machine Creation:")); 546 m_pRadioExportThenAsk->setText(UIWizardExportApp::tr("Ask me about it &after exporting disk as custom image")); 547 m_pRadioAskThenExport->setText(UIWizardExportApp::tr("Ask me about it &before exporting disk as custom image")); 548 m_pRadioDoNotAsk->setText(UIWizardExportApp::tr("Do ¬ ask me about it, leave custom image for future usage")); 549 509 550 /* Adjust label widths: */ 510 551 QList<QWidget*> labels; … … 514 555 labels << m_pAdditionalLabel; 515 556 labels << m_pAccountLabel; 557 labels << m_pMachineLabel; 516 558 int iMaxWidth = 0; 517 559 foreach (QWidget *pLabel, labels) … … 540 582 /* Translate page: */ 541 583 retranslateUi(); 584 585 /* Choose default cloud export option: */ 586 m_pRadioAskThenExport->setChecked(true); 542 587 } 543 588
Note:
See TracChangeset
for help on using the changeset viewer.