VirtualBox

Ignore:
Timestamp:
Jan 17, 2024 1:38:47 PM (11 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10513: VM settings / Storage page: Wiping out some excessive code related to machine ID cached in storage model/items.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIStorageSettingsEditor.cpp

    r102923 r102924  
    233233    QUuid id() const;
    234234
    235     /** Returns machine ID. */
    236     QUuid machineId() const;
    237     /** Defines @a uMachineId. */
    238     void setMachineId(const QUuid &uMachineId);
    239 
    240235    /** Returns runtime type information. */
    241236    virtual ItemType rtti() const = 0;
     
    266261    /** Holds the item ID. */
    267262    QUuid         m_uId;
    268     /** Holds the item machine ID. */
    269     QUuid         m_uMachineId;
    270263};
    271264Q_DECLARE_METATYPE(AbstractItem::ItemType);
     
    721714    /** Returns device type of attachment with certain @a uAttId from controller with certain @a uCtrId. */
    722715    KDeviceType attachmentDeviceType(const QUuid &uCtrId, const QUuid &uAttId) const;
    723 
    724     /** Defines @a uMachineId for reference. */
    725     void setMachineId(const QUuid &uMachineId);
    726716
    727717    /** Sorts the contents of model by @a iColumn and @a enmOrder. */
     
    10791069}
    10801070
    1081 QUuid AbstractItem::machineId() const
    1082 {
    1083     return m_uMachineId;
    1084 }
    1085 
    1086 void AbstractItem::setMachineId(const QUuid &uMachineId)
    1087 {
    1088     m_uMachineId = uMachineId;
    1089 }
    1090 
    10911071
    10921072/*********************************************************************************************************************************
     
    26042584    /* Null by default: */
    26052585    return KDeviceType_Null;
    2606 }
    2607 
    2608 void StorageModel::setMachineId(const QUuid &uMachineId)
    2609 {
    2610     m_pRootItem->setMachineId(uMachineId);
    26112586}
    26122587
     
    30483023{
    30493024    m_uMachineId = uMachineId;
    3050     if (m_pModelStorage)
    3051         m_pModelStorage->setMachineId(uMachineId);
    30523025}
    30533026
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