VirtualBox

Changeset 90157 in vbox


Ignore:
Timestamp:
Jul 12, 2021 11:14:38 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145660
Message:

FE/Qt: bugref:9996: Some more renaming.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp

    r90151 r90157  
    26552655    comUnattendedInstaller.SetPassword(unattendedData.m_strPassword);
    26562656    checkUnattendedInstallError(comUnattendedInstaller);
    2657     comUnattendedInstaller.SetHostname(unattendedData.m_strHostnameDomain);
     2657    comUnattendedInstaller.SetHostname(unattendedData.m_strHostnameDomainName);
    26582658    checkUnattendedInstallError(comUnattendedInstaller);
    26592659    comUnattendedInstaller.SetProductKey(unattendedData.m_strProductKey);
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIHostnameDomainNameEditor.cpp

    r90155 r90157  
    3838    : QIWithRetranslateUI<QWidget>(pParent)
    3939    , m_pHostnameLineEdit(0)
    40     , m_pDomainLineEdit(0)
     40    , m_pDomainNameLineEdit(0)
    4141    , m_pHostnameLabel(0)
    42     , m_pDomainLabel(0)
     42    , m_pDomainNameLabel(0)
    4343{
    4444    prepare();
     
    5555{
    5656    return m_pHostnameLineEdit && m_pHostnameLineEdit->hasAcceptableInput() &&
    57         m_pDomainLineEdit && m_pDomainLineEdit->hasAcceptableInput();
     57        m_pDomainNameLineEdit && m_pDomainNameLineEdit->hasAcceptableInput();
    5858}
    5959
     
    6464}
    6565
    66 QString UIHostnameDomainNameEditor::domain() const
     66QString UIHostnameDomainNameEditor::domainName() const
    6767{
    68     if (m_pDomainLineEdit)
    69         return m_pDomainLineEdit->text();
     68    if (m_pDomainNameLineEdit)
     69        return m_pDomainNameLineEdit->text();
    7070    return QString();
    7171}
    7272
    73 void UIHostnameDomainNameEditor::setDomain(const QString &strDomain)
     73void UIHostnameDomainNameEditor::setDomainName(const QString &strDomain)
    7474{
    75     if (m_pDomainLineEdit)
    76         m_pDomainLineEdit->setText(strDomain);
     75    if (m_pDomainNameLineEdit)
     76        m_pDomainNameLineEdit->setText(strDomain);
    7777}
    7878
    79 QString UIHostnameDomainNameEditor::hostnameDomain() const
     79QString UIHostnameDomainNameEditor::hostnameDomainName() const
    8080{
    81     if (m_pHostnameLineEdit && m_pDomainLineEdit)
    82         return QString("%1.%2").arg(m_pHostnameLineEdit->text()).arg(m_pDomainLineEdit->text());
     81    if (m_pHostnameLineEdit && m_pDomainNameLineEdit)
     82        return QString("%1.%2").arg(m_pHostnameLineEdit->text()).arg(m_pDomainNameLineEdit->text());
    8383    return QString();
    8484}
     
    9595    if (m_pHostnameLineEdit)
    9696        m_pHostnameLineEdit->setToolTip(strHostnameTooltip);
    97     if (m_pDomainLabel)
     97    if (m_pDomainNameLabel)
    9898    {
    99         m_pDomainLabel->setText(tr("&Domain"));
    100         m_pDomainLabel->setToolTip(strDomainTooltip);
     99        m_pDomainNameLabel->setText(tr("&Domain"));
     100        m_pDomainNameLabel->setToolTip(strDomainTooltip);
    101101    }
    102     m_pDomainLineEdit->setToolTip(strDomainTooltip);
     102    m_pDomainNameLineEdit->setToolTip(strDomainTooltip);
    103103}
    104104
     
    140140    int iRow = 0;
    141141    addLineEdit(iRow, m_pHostnameLabel, m_pHostnameLineEdit, pMainLayout);
    142     addLineEdit(iRow, m_pDomainLabel, m_pDomainLineEdit, pMainLayout);
     142    addLineEdit(iRow, m_pDomainNameLabel, m_pDomainNameLineEdit, pMainLayout);
    143143
    144144    connect(m_pHostnameLineEdit, &QILineEdit::textChanged,
    145145            this, &UIHostnameDomainNameEditor::sltHostnameChanged);
    146     connect(m_pDomainLineEdit, &QILineEdit::textChanged,
     146    connect(m_pDomainNameLineEdit, &QILineEdit::textChanged,
    147147            this, &UIHostnameDomainNameEditor::sltDomainChanged);
    148148
     
    155155    m_pHostnameLineEdit->mark(!m_pHostnameLineEdit->hasAcceptableInput(),
    156156                              tr("Hostname should be a string of length 2. Allowed characters are alphanumerics, '-', and '.'" ));
    157     emit sigHostnameDomainChanged(hostnameDomain());
     157    emit sigHostnameDomainNameChanged(hostnameDomainName());
    158158}
    159159
    160160void UIHostnameDomainNameEditor::sltDomainChanged()
    161161{
    162     m_pDomainLineEdit->mark(!m_pDomainLineEdit->hasAcceptableInput(),
     162    m_pDomainNameLineEdit->mark(!m_pDomainNameLineEdit->hasAcceptableInput(),
    163163                              tr("Domain name should be a string of length 2. Allowed characters are alphanumerics, '-', and '.'" ));
    164164
    165     emit sigHostnameDomainChanged(hostnameDomain());
     165    emit sigHostnameDomainNameChanged(hostnameDomainName());
    166166}
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIHostnameDomainNameEditor.h

    r90155 r90157  
    4242signals:
    4343
    44     void sigHostnameDomainChanged(const QString &strHostNameDomain);
     44    void sigHostnameDomainNameChanged(const QString &strHostNameDomain);
    4545
    4646public:
     
    5151    void setHostname(const QString &strHostname);
    5252
    53     QString domain() const;
    54     void setDomain(const QString &strDomain);
     53    QString domainName() const;
     54    void setDomainName(const QString &strDomain);
    5555
    56     QString hostnameDomain() const;
     56    QString hostnameDomainName() const;
    5757
    5858    bool isComplete() const;
     
    7373
    7474    QILineEdit  *m_pHostnameLineEdit;
    75     QILineEdit  *m_pDomainLineEdit;
     75    QILineEdit  *m_pDomainNameLineEdit;
    7676
    7777    QLabel *m_pHostnameLabel;
    78     QLabel *m_pDomainLabel;
     78    QLabel *m_pDomainNameLabel;
    7979
    8080};
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp

    r90151 r90157  
    742742}
    743743
    744 const QString &UIWizardNewVM::hostnameDomain() const
    745 {
    746     return m_unattendedInstallData.m_strHostnameDomain;
    747 }
    748 
    749 void UIWizardNewVM::setHostnameDomain(const QString &strHostnameDomain)
    750 {
    751     m_unattendedInstallData.m_strHostnameDomain = strHostnameDomain;
     744const QString &UIWizardNewVM::hostnameDomainName() const
     745{
     746    return m_unattendedInstallData.m_strHostnameDomainName;
     747}
     748
     749void UIWizardNewVM::setHostnameDomainName(const QString &strHostnameDomain)
     750{
     751    m_unattendedInstallData.m_strHostnameDomainName = strHostnameDomain;
    752752}
    753753
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.h

    r90151 r90157  
    5252    QString m_strUserName;
    5353    QString m_strPassword;
    54     QString m_strHostnameDomain;
     54    QString m_strHostnameDomainName;
    5555    QString m_strProductKey;
    5656    bool m_fInstallGuestAdditions;
     
    134134    void setGuestAdditionsISOPath(const QString &strGAISOPath);
    135135
    136     const QString &hostnameDomain() const;
    137     void setHostnameDomain(const QString &strHostname);
     136    const QString &hostnameDomainName() const;
     137    void setHostnameDomainName(const QString &strHostnameDomainName);
    138138
    139139    const QString &productKey() const;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMUnattendedPageBasic.cpp

    r90155 r90157  
    102102                this, &UIWizardNewVMUnattendedPageBasic::sltInstallGACheckBoxToggle);
    103103    if (m_pHostnameDomainNameEditor)
    104         connect(m_pHostnameDomainNameEditor, &UIHostnameDomainNameEditor::sigHostnameDomainChanged,
    105                 this, &UIWizardNewVMUnattendedPageBasic::sltHostnameDomainChanged);
     104        connect(m_pHostnameDomainNameEditor, &UIHostnameDomainNameEditor::sigHostnameDomainNameChanged,
     105                this, &UIWizardNewVMUnattendedPageBasic::sltHostnameDomainNameChanged);
    106106    if (m_pProductKeyLineEdit)
    107107        connect(m_pProductKeyLineEdit, &QLineEdit::textChanged,
     
    167167        m_pHostnameDomainNameEditor->blockSignals(true);
    168168
    169         if (!m_userModifiedParameters.contains("HostnameDomain"))
     169        if (!m_userModifiedParameters.contains("HostnameDomainName"))
    170170        {
    171171            m_pHostnameDomainNameEditor->setHostname(pWizard->machineBaseName());
    172             m_pHostnameDomainNameEditor->setDomain("myguest.virtualbox.org");
     172            m_pHostnameDomainNameEditor->setDomainName("myguest.virtualbox.org");
    173173            /* Initialize unattended hostname here since we cannot get the efault value from CUnattended this early (unlike username etc): */
    174             newVMWizardPropertySet(HostnameDomain, m_pHostnameDomainNameEditor->hostnameDomain());
     174            newVMWizardPropertySet(HostnameDomainName, m_pHostnameDomainNameEditor->hostnameDomainName());
    175175        }
    176176
     
    252252}
    253253
    254 void UIWizardNewVMUnattendedPageBasic::sltHostnameDomainChanged(const QString &strHostnameDomain)
    255 {
    256     newVMWizardPropertySet(HostnameDomain, strHostnameDomain);
    257     m_userModifiedParameters << "HostnameDomain";
     254void UIWizardNewVMUnattendedPageBasic::sltHostnameDomainNameChanged(const QString &strHostnameDomainName)
     255{
     256    newVMWizardPropertySet(HostnameDomainName, strHostnameDomainName);
     257    m_userModifiedParameters << "HostnameDomainName";
    258258    emit completeChanged();
    259259}
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMUnattendedPageBasic.h

    r90155 r90157  
    6565    void sltPasswordChanged(const QString &strPassword);
    6666    void sltUserNameChanged(const QString &strUserName);
    67     void sltHostnameDomainChanged(const QString &strHostname);
     67    void sltHostnameDomainNameChanged(const QString &strHostnameDomainName);
    6868    void sltProductKeyChanged(const QString &strProductKey);
    6969    void sltStartHeadlessChanged(bool fStartHeadless);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette