Changeset 104568 in vbox
- Timestamp:
- May 8, 2024 4:53:50 PM (9 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.cpp
r104567 r104568 201 201 if (m_pToolBox) 202 202 { 203 m_pToolBox->setPageTitle(0, UIWizardAddCloudVM::tr(" Location"));204 m_pToolBox->setPageTitle(1, UIWizardAddCloudVM::tr(" Source"));203 m_pToolBox->setPageTitle(0, UIWizardAddCloudVM::tr("Source")); 204 m_pToolBox->setPageTitle(1, UIWizardAddCloudVM::tr("Instances")); 205 205 } 206 206 … … 228 228 } 229 229 230 /* Translate source stuff: */ 231 m_pSourceInstanceList->setWhatsThis(UIWizardAddCloudVM::tr("Lists all the cloud VM instances.")); 230 /* Translate instances stuff: */ 231 if (m_pSourceInstanceList) 232 m_pSourceInstanceList->setWhatsThis(UIWizardAddCloudVM::tr("Lists all the cloud VM instances.")); 232 233 } 233 234 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.h
r104567 r104568 88 88 UIToolBox *m_pToolBox; 89 89 90 /** Holds the sourcelayout instance. */90 /** Holds the provider layout instance. */ 91 91 QGridLayout *m_pLayoutProvider; 92 /** Holds the sourcetype label instance. */92 /** Holds the provider type label instance. */ 93 93 QLabel *m_pProviderLabel; 94 /** Holds the sourcetype combo-box instance. */94 /** Holds the provider type combo-box instance. */ 95 95 QIComboBox *m_pProviderComboBox; 96 96 /** Holds the profile label instance. */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.cpp
r104567 r104568 406 406 407 407 /* Translate main label: */ 408 m_pLabelMain->setText(UIWizardAddCloudVM::tr("Please choose the source to add cloud virtual machine from. This can " 409 "be one of known cloud service providers below.")); 408 if (m_pLabelMain) 409 m_pLabelMain->setText(UIWizardAddCloudVM::tr("Please choose the source to add cloud virtual machine from. This can " 410 "be one of known cloud service providers below.")); 410 411 411 412 /* Translate provider label: */ 412 m_pProviderLabel->setText(UIWizardAddCloudVM::tr("&Source:")); 413 if (m_pProviderLabel) 414 m_pProviderLabel->setText(UIWizardAddCloudVM::tr("&Provider:")); 413 415 /* Translate received values of Provider combo-box. 414 416 * We are enumerating starting from 0 for simplicity: */ … … 421 423 422 424 /* Translate description label: */ 423 m_pLabelDescription->setText(UIWizardAddCloudVM::tr("Please choose one of cloud service profiles you have registered to " 424 "add virtual machine from. Existing instance list will be " 425 "updated. To continue, select at least one instance to add virtual " 426 "machine on the basis of it.")); 425 if (m_pLabelDescription) 426 m_pLabelDescription->setText(UIWizardAddCloudVM::tr("Please choose one of cloud service profiles you have registered to " 427 "add virtual machine from. Existing instance list will be " 428 "updated. To continue, select at least one instance to add virtual " 429 "machine on the basis of it.")); 427 430 428 431 /* Translate profile stuff: */ 429 m_pProfileLabel->setText(UIWizardAddCloudVM::tr("&Profile:")); 432 if (m_pProfileLabel) 433 m_pProfileLabel->setText(UIWizardAddCloudVM::tr("P&rofile:")); 430 434 if (m_pProfileComboBox) 431 435 m_pProfileComboBox->setToolTip(UIWizardAddCloudVM::tr("Selects cloud profile.")); … … 436 440 } 437 441 438 /* Translate source stuff: */ 439 m_pSourceInstanceLabel->setText(UIWizardAddCloudVM::tr("&Instances:")); 440 m_pSourceInstanceList->setWhatsThis(UIWizardAddCloudVM::tr("Lists all the cloud VM instances.")); 442 /* Translate instances stuff: */ 443 if (m_pSourceInstanceLabel) 444 m_pSourceInstanceLabel->setText(UIWizardAddCloudVM::tr("&Instances:")); 445 if (m_pSourceInstanceList) 446 m_pSourceInstanceList->setWhatsThis(UIWizardAddCloudVM::tr("Lists all the cloud VM instances.")); 441 447 442 448 /* Adjust label widths: */ 443 449 QList<QWidget*> labels; 444 labels << m_pProviderLabel; 445 labels << m_pProfileLabel; 446 labels << m_pSourceInstanceLabel; 450 if (m_pProviderLabel) 451 labels << m_pProviderLabel; 452 if (m_pProfileLabel) 453 labels << m_pProfileLabel; 454 if (m_pSourceInstanceLabel) 455 labels << m_pSourceInstanceLabel; 447 456 int iMaxWidth = 0; 448 457 foreach (QWidget *pLabel, labels) 449 458 iMaxWidth = qMax(iMaxWidth, pLabel->minimumSizeHint().width()); 450 m_pProviderLayout->setColumnMinimumWidth(0, iMaxWidth); 451 m_pOptionsLayout->setColumnMinimumWidth(0, iMaxWidth); 459 if (m_pProviderLayout) 460 m_pProviderLayout->setColumnMinimumWidth(0, iMaxWidth); 461 if (m_pOptionsLayout) 462 m_pOptionsLayout->setColumnMinimumWidth(0, iMaxWidth); 452 463 } 453 464
Note:
See TracChangeset
for help on using the changeset viewer.