Changeset 64756 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Nov 25, 2016 5:36:44 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 112095
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceEditorWidget.cpp
r64750 r64756 159 159 160 160 /** Constructs item passing @a iNumber and @a pParentItem to the base-class. 161 * @param enm TypeBrings the Virtual System Description type.161 * @param enmVSDType Brings the Virtual System Description type. 162 162 * @param strRef Brings something totally useless. 163 163 * @param strOrigValue Brings the original value. … … 165 165 * @param strExtraConfigValue Brings the extra configuration value. */ 166 166 UIVirtualHardwareItem(int iNumber, 167 KVirtualSystemDescriptionType enm Type,167 KVirtualSystemDescriptionType enmVSDType, 168 168 const QString &strRef, 169 169 const QString &strOrigValue, … … 199 199 200 200 /** Holds the Virtual System Description type. */ 201 KVirtualSystemDescriptionType m_enm Type;201 KVirtualSystemDescriptionType m_enmVSDType; 202 202 /** Holds something totally useless. */ 203 203 QString m_strRef; … … 335 335 336 336 UIVirtualHardwareItem::UIVirtualHardwareItem(int iNumber, 337 KVirtualSystemDescriptionType enm Type,337 KVirtualSystemDescriptionType enmVSDType, 338 338 const QString &strRef, 339 339 const QString &aOrigValue, … … 342 342 UIApplianceModelItem *pParentItem) 343 343 : UIApplianceModelItem(iNumber, ApplianceModelItemType_VirtualHardware, pParentItem) 344 , m_enm Type(enmType)344 , m_enmVSDType(enmVSDType) 345 345 , m_strRef(strRef) 346 346 , m_strOrigValue(aOrigValue) … … 359 359 { 360 360 /* Some items are checkable */ 361 if (m_enm Type == KVirtualSystemDescriptionType_Floppy ||362 m_enm Type == KVirtualSystemDescriptionType_CDROM ||363 m_enm Type == KVirtualSystemDescriptionType_USBController ||364 m_enm Type == KVirtualSystemDescriptionType_SoundCard ||365 m_enm Type == KVirtualSystemDescriptionType_NetworkAdapter)361 if (m_enmVSDType == KVirtualSystemDescriptionType_Floppy || 362 m_enmVSDType == KVirtualSystemDescriptionType_CDROM || 363 m_enmVSDType == KVirtualSystemDescriptionType_USBController || 364 m_enmVSDType == KVirtualSystemDescriptionType_SoundCard || 365 m_enmVSDType == KVirtualSystemDescriptionType_NetworkAdapter) 366 366 enmFlags |= Qt::ItemIsUserCheckable; 367 367 /* Some items are editable */ 368 if ((m_enm Type == KVirtualSystemDescriptionType_Name ||369 m_enm Type == KVirtualSystemDescriptionType_Product ||370 m_enm Type == KVirtualSystemDescriptionType_ProductUrl ||371 m_enm Type == KVirtualSystemDescriptionType_Vendor ||372 m_enm Type == KVirtualSystemDescriptionType_VendorUrl ||373 m_enm Type == KVirtualSystemDescriptionType_Version ||374 m_enm Type == KVirtualSystemDescriptionType_Description ||375 m_enm Type == KVirtualSystemDescriptionType_License ||376 m_enm Type == KVirtualSystemDescriptionType_OS ||377 m_enm Type == KVirtualSystemDescriptionType_CPU ||378 m_enm Type == KVirtualSystemDescriptionType_Memory ||379 m_enm Type == KVirtualSystemDescriptionType_SoundCard ||380 m_enm Type == KVirtualSystemDescriptionType_NetworkAdapter ||381 m_enm Type == KVirtualSystemDescriptionType_HardDiskControllerIDE ||382 m_enm Type == KVirtualSystemDescriptionType_HardDiskImage) &&368 if ((m_enmVSDType == KVirtualSystemDescriptionType_Name || 369 m_enmVSDType == KVirtualSystemDescriptionType_Product || 370 m_enmVSDType == KVirtualSystemDescriptionType_ProductUrl || 371 m_enmVSDType == KVirtualSystemDescriptionType_Vendor || 372 m_enmVSDType == KVirtualSystemDescriptionType_VendorUrl || 373 m_enmVSDType == KVirtualSystemDescriptionType_Version || 374 m_enmVSDType == KVirtualSystemDescriptionType_Description || 375 m_enmVSDType == KVirtualSystemDescriptionType_License || 376 m_enmVSDType == KVirtualSystemDescriptionType_OS || 377 m_enmVSDType == KVirtualSystemDescriptionType_CPU || 378 m_enmVSDType == KVirtualSystemDescriptionType_Memory || 379 m_enmVSDType == KVirtualSystemDescriptionType_SoundCard || 380 m_enmVSDType == KVirtualSystemDescriptionType_NetworkAdapter || 381 m_enmVSDType == KVirtualSystemDescriptionType_HardDiskControllerIDE || 382 m_enmVSDType == KVirtualSystemDescriptionType_HardDiskImage) && 383 383 m_checkState == Qt::Checked) /* Item has to be enabled */ 384 384 enmFlags |= Qt::ItemIsEditable; … … 395 395 { 396 396 if (iColumn == ApplianceViewSection_ConfigValue && 397 (m_enm Type == KVirtualSystemDescriptionType_Floppy ||398 m_enm Type == KVirtualSystemDescriptionType_CDROM ||399 m_enm Type == KVirtualSystemDescriptionType_USBController ||400 m_enm Type == KVirtualSystemDescriptionType_SoundCard ||401 m_enm Type == KVirtualSystemDescriptionType_NetworkAdapter))397 (m_enmVSDType == KVirtualSystemDescriptionType_Floppy || 398 m_enmVSDType == KVirtualSystemDescriptionType_CDROM || 399 m_enmVSDType == KVirtualSystemDescriptionType_USBController || 400 m_enmVSDType == KVirtualSystemDescriptionType_SoundCard || 401 m_enmVSDType == KVirtualSystemDescriptionType_NetworkAdapter)) 402 402 { 403 403 m_checkState = static_cast<Qt::CheckState>(value.toInt()); … … 436 436 if (iColumn == ApplianceViewSection_Description) 437 437 { 438 switch (m_enm Type)438 switch (m_enmVSDType) 439 439 { 440 440 case KVirtualSystemDescriptionType_Name: value = UIApplianceEditorWidget::tr("Name"); break; … … 466 466 else if (iColumn == ApplianceViewSection_ConfigValue) 467 467 { 468 switch (m_enm Type)468 switch (m_enmVSDType) 469 469 { 470 470 case KVirtualSystemDescriptionType_Description: … … 501 501 if (iColumn == ApplianceViewSection_Description) 502 502 { 503 switch (m_enm Type)503 switch (m_enmVSDType) 504 504 { 505 505 case KVirtualSystemDescriptionType_Name: value = UIIconPool::iconSet(":/name_16px.png"); break; … … 528 528 } 529 529 else if (iColumn == ApplianceViewSection_ConfigValue && 530 m_enm Type == KVirtualSystemDescriptionType_OS)530 m_enmVSDType == KVirtualSystemDescriptionType_OS) 531 531 { 532 532 const QStyle *pStyle = QApplication::style(); … … 562 562 { 563 563 if (iColumn == ApplianceViewSection_ConfigValue && 564 (m_enm Type == KVirtualSystemDescriptionType_Floppy ||565 m_enm Type == KVirtualSystemDescriptionType_CDROM ||566 m_enm Type == KVirtualSystemDescriptionType_USBController ||567 m_enm Type == KVirtualSystemDescriptionType_SoundCard ||568 m_enm Type == KVirtualSystemDescriptionType_NetworkAdapter))564 (m_enmVSDType == KVirtualSystemDescriptionType_Floppy || 565 m_enmVSDType == KVirtualSystemDescriptionType_CDROM || 566 m_enmVSDType == KVirtualSystemDescriptionType_USBController || 567 m_enmVSDType == KVirtualSystemDescriptionType_SoundCard || 568 m_enmVSDType == KVirtualSystemDescriptionType_NetworkAdapter)) 569 569 value = m_checkState; 570 570 break; … … 572 572 case UIVirtualHardwareItem::TypeRole: 573 573 { 574 value = m_enm Type;574 value = m_enmVSDType; 575 575 break; 576 576 } … … 590 590 if (idx.column() == ApplianceViewSection_ConfigValue) 591 591 { 592 switch (m_enm Type)592 switch (m_enmVSDType) 593 593 { 594 594 case KVirtualSystemDescriptionType_OS: … … 697 697 { 698 698 bool fDone = false; 699 switch (m_enm Type)699 switch (m_enmVSDType) 700 700 { 701 701 case KVirtualSystemDescriptionType_OS: … … 788 788 { 789 789 bool fDone = false; 790 switch (m_enm Type)790 switch (m_enmVSDType) 791 791 { 792 792 case KVirtualSystemDescriptionType_OS: … … 1279 1279 UIVirtualHardwareItem *hwItem = static_cast<UIVirtualHardwareItem*>(pItem); 1280 1280 /* The license type shouldn't be displayed */ 1281 if (m_aFilteredList.contains(hwItem->m_enm Type))1281 if (m_aFilteredList.contains(hwItem->m_enmVSDType)) 1282 1282 return false; 1283 1283 } … … 1305 1305 1306 1306 for (unsigned int i = 0; i < RT_ELEMENTS(s_aSortList); ++i) 1307 if (pHwLeft->m_enm Type == s_aSortList[i])1307 if (pHwLeft->m_enmVSDType == s_aSortList[i]) 1308 1308 { 1309 1309 for (unsigned int a = 0; a <= i; ++a) 1310 if (pHwRight->m_enm Type == s_aSortList[a])1310 if (pHwRight->m_enmVSDType == s_aSortList[a]) 1311 1311 return true; 1312 1312 return false;
Note:
See TracChangeset
for help on using the changeset viewer.