VirtualBox

Changeset 104568 in vbox


Ignore:
Timestamp:
May 8, 2024 4:53:50 PM (9 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10671: Add Cloud VM wizard: A bunch of coding-style fixes in the same area.

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  
    201201    if (m_pToolBox)
    202202    {
    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"));
    205205    }
    206206
     
    228228    }
    229229
    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."));
    232233}
    233234
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.h

    r104567 r104568  
    8888    UIToolBox *m_pToolBox;
    8989
    90     /** Holds the source layout instance. */
     90    /** Holds the provider layout instance. */
    9191    QGridLayout  *m_pLayoutProvider;
    92     /** Holds the source type label instance. */
     92    /** Holds the provider type label instance. */
    9393    QLabel       *m_pProviderLabel;
    94     /** Holds the source type combo-box instance. */
     94    /** Holds the provider type combo-box instance. */
    9595    QIComboBox   *m_pProviderComboBox;
    9696    /** Holds the profile label instance. */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.cpp

    r104567 r104568  
    406406
    407407    /* 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."));
    410411
    411412    /* Translate provider label: */
    412     m_pProviderLabel->setText(UIWizardAddCloudVM::tr("&Source:"));
     413    if (m_pProviderLabel)
     414        m_pProviderLabel->setText(UIWizardAddCloudVM::tr("&Provider:"));
    413415    /* Translate received values of Provider combo-box.
    414416     * We are enumerating starting from 0 for simplicity: */
     
    421423
    422424    /* 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."));
    427430
    428431    /* Translate profile stuff: */
    429     m_pProfileLabel->setText(UIWizardAddCloudVM::tr("&Profile:"));
     432    if (m_pProfileLabel)
     433        m_pProfileLabel->setText(UIWizardAddCloudVM::tr("P&rofile:"));
    430434    if (m_pProfileComboBox)
    431435        m_pProfileComboBox->setToolTip(UIWizardAddCloudVM::tr("Selects cloud profile."));
     
    436440    }
    437441
    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."));
    441447
    442448    /* Adjust label widths: */
    443449    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;
    447456    int iMaxWidth = 0;
    448457    foreach (QWidget *pLabel, labels)
    449458        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);
    452463}
    453464
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