Changeset 73320 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jul 23, 2018 1:25:18 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 123928
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceEditorWidget.cpp
r73118 r73320 158 158 159 159 /** Constructs item passing @a iNumber and @a pParentItem to the base-class. 160 * @param pParent Brings the parent reference. 160 161 * @param enmVSDType Brings the Virtual System Description type. 161 162 * @param strRef Brings something totally useless. … … 163 164 * @param strConfigValue Brings the configuration value. 164 165 * @param strExtraConfigValue Brings the extra configuration value. */ 165 UIVirtualHardwareItem(int iNumber, 166 UIVirtualHardwareItem(UIApplianceModel *pParent, 167 int iNumber, 166 168 KVirtualSystemDescriptionType enmVSDType, 167 169 const QString &strRef, … … 198 200 199 201 private: 202 203 /** Holds the parent reference. */ 204 UIApplianceModel *m_pParent; 200 205 201 206 /** Holds the Virtual System Description type. */ … … 328 333 *********************************************************************************************************************************/ 329 334 330 UIVirtualHardwareItem::UIVirtualHardwareItem(int iNumber, 335 UIVirtualHardwareItem::UIVirtualHardwareItem(UIApplianceModel *pParent, 336 int iNumber, 331 337 KVirtualSystemDescriptionType enmVSDType, 332 338 const QString &strRef, 333 const QString & aOrigValue,339 const QString &strOrigValue, 334 340 const QString &strConfigValue, 335 341 const QString &strExtraConfigValue, 336 342 UIApplianceModelItem *pParentItem) 337 343 : UIApplianceModelItem(iNumber, ApplianceModelItemType_VirtualHardware, pParentItem) 344 , m_pParent(pParent) 338 345 , m_enmVSDType(enmVSDType) 339 346 , m_strRef(strRef) 340 , m_strOrigValue( aOrigValue)347 , m_strOrigValue(strOrigValue) 341 348 , m_strConfigValue(strConfigValue) 342 349 , m_strConfigDefaultValue(strConfigValue) … … 1007 1014 else 1008 1015 { 1009 UIVirtualHardwareItem *pHardwareItem = new UIVirtualHardwareItem( i, types[i], refs[i], origValues[i], configValues[i], extraConfigValues[i], pVirtualSystemItem);1016 UIVirtualHardwareItem *pHardwareItem = new UIVirtualHardwareItem(this, i, types[i], refs[i], origValues[i], configValues[i], extraConfigValues[i], pVirtualSystemItem); 1010 1017 pVirtualSystemItem->appendChild(pHardwareItem); 1011 1018 /* Save the hard disk controller types in an extra map */ … … 1030 1037 { 1031 1038 /* New hardware item as child of the controller */ 1032 UIVirtualHardwareItem *pStorageItem = new UIVirtualHardwareItem( i, types[i], refs[i], origValues[i], configValues[i], extraConfigValues[i], pControllerItem);1039 UIVirtualHardwareItem *pStorageItem = new UIVirtualHardwareItem(this, i, types[i], refs[i], origValues[i], configValues[i], extraConfigValues[i], pControllerItem); 1033 1040 pControllerItem->appendChild(pStorageItem); 1034 1041 }
Note:
See TracChangeset
for help on using the changeset viewer.