VirtualBox

Changeset 83203 in vbox


Ignore:
Timestamp:
Mar 4, 2020 4:37:11 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: A bit of cleanup for UICloudMachine and UICloudNetworkingStuff stuff.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/globals
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudMachine.cpp

    r83190 r83203  
    3939    , m_iMemorySize(0)
    4040    , m_iCpuCount(0)
    41     //, m_strInstanceShape("None")
    42     //, m_strDomain("None")
    43     //, m_strBootingFirmware("None")
    44     //, m_strImageId(QString())
    4541{
    4642    //printf("Data for machine with id = {%s} is created\n", m_strId.toUtf8().constData());
     
    5753    , m_iMemorySize(other.m_iMemorySize)
    5854    , m_iCpuCount(other.m_iCpuCount)
    59     , m_strInstanceShape(other.m_strInstanceShape)
     55    , m_strShape(other.m_strShape)
    6056    , m_strDomain(other.m_strDomain)
    6157    , m_strBootingFirmware(other.m_strBootingFirmware)
     
    8076    m_iCpuCount = fetchCpuCount(instanceInfoMap);
    8177    m_enmMachineState = fetchMachineState(instanceInfoMap);
    82     m_strInstanceShape = fetchShape(instanceInfoMap);
     78    m_strShape = fetchShape(instanceInfoMap);
    8379    m_strDomain = fetchDomain(instanceInfoMap);
    8480    m_strBootingFirmware = fetchBootingFirmware(instanceInfoMap);
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudMachine.h

    r83190 r83203  
    7373    /** Returns cloud VM CPU count. */
    7474    int cpuCount() const { return m_iCpuCount; }
    75     /** Returns cloud VM instance shape. */
    76     QString instanceShape() const { return m_strInstanceShape; }
     75    /** Returns cloud VM shape. */
     76    QString shape() const { return m_strShape; }
    7777    /** Returns cloud VM domain. */
    7878    QString domain() const { return m_strDomain; }
     
    108108    /** Holds the cloud VM CPU count. */
    109109    int      m_iCpuCount;
    110     /** Holds the cloud VM instance shape. */
    111     QString  m_strInstanceShape;
     110    /** Holds the cloud VM shape. */
     111    QString  m_strShape;
    112112    /** Holds the cloud VM domain. */
    113113    QString  m_strDomain;
     
    168168    /** Returns cloud VM CPU count. */
    169169    int cpuCount() const { return d->cpuCount(); }
    170     /** Returns cloud VM instance shape. */
    171     QString instanceShape() const { return d->instanceShape(); }
     170    /** Returns cloud VM shape. */
     171    QString shape() const { return d->shape(); }
    172172    /** Returns cloud VM domain. */
    173173    QString domain() const { return d->domain(); }
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudNetworkingStuff.cpp

    r83190 r83203  
    263263QString UICloudNetworkingStuff::fetchShape(const QMap<KVirtualSystemDescriptionType, QString> &infoMap)
    264264{
    265     /* Return instance shape value: */
     265    /* Return shape value: */
    266266    return infoMap.value(KVirtualSystemDescriptionType_CloudInstanceShape);
    267267}
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDetailsGenerator.cpp

    r83202 r83203  
    298298    }
    299299
    300     /* Instance Shape: */
    301     {
    302         const QString strShape = guiCloudMachine.instanceShape();
     300    /* Shape: */
     301    {
     302        const QString strShape = guiCloudMachine.shape();
    303303        const QString strResult = !strShape.isEmpty()
    304304                                ? strShape
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