- Timestamp:
- May 20, 2019 11:54:58 AM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings/machine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp
r78547 r78596 587 587 foreach (AbstractItem *item, mControllers) 588 588 { 589 ControllerItem *ctrItem = static_cast <ControllerItem*>(item);589 ControllerItem *ctrItem = qobject_cast<ControllerItem*>(item); 590 590 if (ctrItem->ctrBusType() == aBus) 591 591 ++ result; … … 739 739 for (int i = 0; i < mAttachments.size(); ++i) 740 740 { 741 AttachmentItem *pItem = static_cast<AttachmentItem*>(mAttachments[i]);741 AttachmentItem *pItem = qobject_cast<AttachmentItem*>(mAttachments.at(i)); 742 742 if (mPortCount < (uint)pItem->attSlot().port + 1) 743 743 mPortCount = (uint)pItem->attSlot().port + 1; … … 796 796 SlotsList usedSlots; 797 797 for (int i = 0; i < mAttachments.size(); ++ i) 798 usedSlots << static_cast <AttachmentItem*> (mAttachments [i])->attSlot();798 usedSlots << qobject_cast<AttachmentItem*>(mAttachments.at(i))->attSlot(); 799 799 return usedSlots; 800 800 } … … 810 810 foreach (AbstractItem *pItem, mAttachments) 811 811 { 812 AttachmentItem *pItemAttachment = static_cast<AttachmentItem*>(pItem);812 AttachmentItem *pItemAttachment = qobject_cast<AttachmentItem*>(pItem); 813 813 if ( enmType == KDeviceType_Null 814 814 || pItemAttachment->attDeviceType() == enmType) … … 902 902 SlotsList AttachmentItem::attSlots() const 903 903 { 904 ControllerItem *ctr = static_cast<ControllerItem*>(m_pParentItem);904 ControllerItem *ctr = qobject_cast<ControllerItem*>(m_pParentItem); 905 905 906 906 /* Filter list from used slots */ … … 921 921 DeviceTypeList AttachmentItem::attDeviceTypes() const 922 922 { 923 return static_cast<ControllerItem*>(m_pParentItem)->ctrDeviceTypeList();923 return qobject_cast<ControllerItem*>(m_pParentItem)->ctrDeviceTypeList(); 924 924 } 925 925 … … 1264 1264 ItemState state = State_DefaultItem; 1265 1265 if (hasChildren (aIndex)) 1266 if (QTreeView *view = qobject_cast <QTreeView*>(QObject::parent()))1266 if (QTreeView *view = qobject_cast<QTreeView*>(QObject::parent())) 1267 1267 state = view->isExpanded (aIndex) ? State_ExpandedItem : State_CollapsedItem; 1268 1268 return item->pixmap (state); … … 1319 1319 { 1320 1320 return (m_configurationAccessLevel == ConfigurationAccessLevel_Full) && 1321 ( static_cast<RootItem*>(mRootItem)->childCount(KStorageBus_IDE) <1321 (qobject_cast<RootItem*>(mRootItem)->childCount(KStorageBus_IDE) < 1322 1322 vboxGlobal().virtualBox().GetSystemProperties().GetMaxInstancesOfStorageBus(chipsetType(), KStorageBus_IDE)); 1323 1323 } … … 1325 1325 { 1326 1326 return (m_configurationAccessLevel == ConfigurationAccessLevel_Full) && 1327 ( static_cast<RootItem*>(mRootItem)->childCount(KStorageBus_SATA) <1327 (qobject_cast<RootItem*>(mRootItem)->childCount(KStorageBus_SATA) < 1328 1328 vboxGlobal().virtualBox().GetSystemProperties().GetMaxInstancesOfStorageBus(chipsetType(), KStorageBus_SATA)); 1329 1329 } … … 1331 1331 { 1332 1332 return (m_configurationAccessLevel == ConfigurationAccessLevel_Full) && 1333 ( static_cast<RootItem*>(mRootItem)->childCount(KStorageBus_SCSI) <1333 (qobject_cast<RootItem*>(mRootItem)->childCount(KStorageBus_SCSI) < 1334 1334 vboxGlobal().virtualBox().GetSystemProperties().GetMaxInstancesOfStorageBus(chipsetType(), KStorageBus_SCSI)); 1335 1335 } … … 1337 1337 { 1338 1338 return (m_configurationAccessLevel == ConfigurationAccessLevel_Full) && 1339 ( static_cast<RootItem*>(mRootItem)->childCount(KStorageBus_Floppy) <1339 (qobject_cast<RootItem*>(mRootItem)->childCount(KStorageBus_Floppy) < 1340 1340 vboxGlobal().virtualBox().GetSystemProperties().GetMaxInstancesOfStorageBus(chipsetType(), KStorageBus_Floppy)); 1341 1341 } … … 1343 1343 { 1344 1344 return (m_configurationAccessLevel == ConfigurationAccessLevel_Full) && 1345 ( static_cast<RootItem*>(mRootItem)->childCount(KStorageBus_SAS) <1345 (qobject_cast<RootItem*>(mRootItem)->childCount(KStorageBus_SAS) < 1346 1346 vboxGlobal().virtualBox().GetSystemProperties().GetMaxInstancesOfStorageBus(chipsetType(), KStorageBus_SAS)); 1347 1347 } … … 1349 1349 { 1350 1350 return (m_configurationAccessLevel == ConfigurationAccessLevel_Full) && 1351 ( static_cast<RootItem*>(mRootItem)->childCount(KStorageBus_USB) <1351 (qobject_cast<RootItem*>(mRootItem)->childCount(KStorageBus_USB) < 1352 1352 vboxGlobal().virtualBox().GetSystemProperties().GetMaxInstancesOfStorageBus(chipsetType(), KStorageBus_USB)); 1353 1353 } … … 1355 1355 { 1356 1356 return (m_configurationAccessLevel == ConfigurationAccessLevel_Full) && 1357 ( static_cast<RootItem*>(mRootItem)->childCount(KStorageBus_PCIe) <1357 (qobject_cast<RootItem*>(mRootItem)->childCount(KStorageBus_PCIe) < 1358 1358 vboxGlobal().virtualBox().GetSystemProperties().GetMaxInstancesOfStorageBus(chipsetType(), KStorageBus_PCIe)); 1359 1359 } … … 1361 1361 { 1362 1362 return (m_configurationAccessLevel == ConfigurationAccessLevel_Full) && 1363 ( static_cast<RootItem*>(mRootItem)->childCount(KStorageBus_VirtioSCSI) <1363 (qobject_cast<RootItem*>(mRootItem)->childCount(KStorageBus_VirtioSCSI) < 1364 1364 vboxGlobal().virtualBox().GetSystemProperties().GetMaxInstancesOfStorageBus(chipsetType(), KStorageBus_VirtioSCSI)); 1365 1365 } … … 1370 1370 if (item->rtti() == AbstractItem::Type_ControllerItem) 1371 1371 { 1372 ControllerItem *ctr = static_cast <ControllerItem*>(item);1372 ControllerItem *ctr = qobject_cast<ControllerItem*>(item); 1373 1373 CSystemProperties sp = vboxGlobal().virtualBox().GetSystemProperties(); 1374 1374 const bool fIsMoreAttachmentsPossible = (ULONG)rowCount(aIndex) < … … 1406 1406 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1407 1407 if (item->rtti() == AbstractItem::Type_ControllerItem) 1408 return static_cast <ControllerItem*>(item)->oldCtrName();1408 return qobject_cast<ControllerItem*>(item)->oldCtrName(); 1409 1409 return QString(); 1410 1410 } … … 1413 1413 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1414 1414 if (item->rtti() == AbstractItem::Type_ControllerItem) 1415 return static_cast <ControllerItem*>(item)->ctrName();1415 return qobject_cast<ControllerItem*>(item)->ctrName(); 1416 1416 return QString(); 1417 1417 } … … 1421 1421 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1422 1422 if (item->rtti() == AbstractItem::Type_ControllerItem) 1423 result.setValue ( static_cast <ControllerItem*>(item)->ctrType());1423 result.setValue (qobject_cast<ControllerItem*>(item)->ctrType()); 1424 1424 return result; 1425 1425 } … … 1429 1429 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1430 1430 if (item->rtti() == AbstractItem::Type_ControllerItem) 1431 result.setValue ( static_cast <ControllerItem*>(item)->ctrTypes());1431 result.setValue (qobject_cast<ControllerItem*>(item)->ctrTypes()); 1432 1432 return result; 1433 1433 } … … 1437 1437 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1438 1438 if (item->rtti() == AbstractItem::Type_ControllerItem) 1439 result.setValue ( static_cast <ControllerItem*>(item)->ctrDeviceTypeList());1439 result.setValue (qobject_cast<ControllerItem*>(item)->ctrDeviceTypeList()); 1440 1440 return result; 1441 1441 } … … 1445 1445 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1446 1446 if (item->rtti() == AbstractItem::Type_ControllerItem) 1447 result.setValue ( static_cast <ControllerItem*>(item)->ctrBusType());1447 result.setValue (qobject_cast<ControllerItem*>(item)->ctrBusType()); 1448 1448 return result; 1449 1449 } … … 1453 1453 if (AbstractItem *pItem = static_cast<AbstractItem*>(aIndex.internalPointer())) 1454 1454 if (pItem->rtti() == AbstractItem::Type_ControllerItem) 1455 result.setValue( static_cast<ControllerItem*>(pItem)->ctrBusTypes());1455 result.setValue(qobject_cast<ControllerItem*>(pItem)->ctrBusTypes()); 1456 1456 return result; 1457 1457 } … … 1460 1460 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1461 1461 if (item->rtti() == AbstractItem::Type_ControllerItem) 1462 return static_cast <ControllerItem*>(item)->portCount();1462 return qobject_cast<ControllerItem*>(item)->portCount(); 1463 1463 return 0; 1464 1464 } … … 1467 1467 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1468 1468 if (item->rtti() == AbstractItem::Type_ControllerItem) 1469 return static_cast <ControllerItem*>(item)->maxPortCount();1469 return qobject_cast<ControllerItem*>(item)->maxPortCount(); 1470 1470 return 0; 1471 1471 } … … 1474 1474 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1475 1475 if (item->rtti() == AbstractItem::Type_ControllerItem) 1476 return static_cast <ControllerItem*>(item)->ctrUseIoCache();1476 return qobject_cast<ControllerItem*>(item)->ctrUseIoCache(); 1477 1477 return false; 1478 1478 } … … 1483 1483 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1484 1484 if (item->rtti() == AbstractItem::Type_AttachmentItem) 1485 result.setValue (static_cast <AttachmentItem*>(item)->attSlot());1485 result.setValue(qobject_cast<AttachmentItem*>(item)->attSlot()); 1486 1486 return result; 1487 1487 } … … 1491 1491 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1492 1492 if (item->rtti() == AbstractItem::Type_AttachmentItem) 1493 result.setValue (static_cast <AttachmentItem*>(item)->attSlots());1493 result.setValue(qobject_cast<AttachmentItem*>(item)->attSlots()); 1494 1494 return result; 1495 1495 } … … 1499 1499 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1500 1500 if (item->rtti() == AbstractItem::Type_AttachmentItem) 1501 result.setValue (static_cast <AttachmentItem*>(item)->attDeviceType());1501 result.setValue(qobject_cast<AttachmentItem*>(item)->attDeviceType()); 1502 1502 return result; 1503 1503 } … … 1506 1506 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1507 1507 if (item->rtti() == AbstractItem::Type_AttachmentItem) 1508 return static_cast <AttachmentItem*>(item)->attMediumId();1508 return qobject_cast<AttachmentItem*>(item)->attMediumId(); 1509 1509 return QUuid(); 1510 1510 } … … 1513 1513 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1514 1514 if (item->rtti() == AbstractItem::Type_AttachmentItem) 1515 return static_cast <AttachmentItem*>(item)->attIsHostDrive();1515 return qobject_cast<AttachmentItem*>(item)->attIsHostDrive(); 1516 1516 return false; 1517 1517 } … … 1520 1520 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1521 1521 if (item->rtti() == AbstractItem::Type_AttachmentItem) 1522 return static_cast <AttachmentItem*>(item)->attIsPassthrough();1522 return qobject_cast<AttachmentItem*>(item)->attIsPassthrough(); 1523 1523 return false; 1524 1524 } … … 1527 1527 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1528 1528 if (item->rtti() == AbstractItem::Type_AttachmentItem) 1529 return static_cast <AttachmentItem*>(item)->attIsTempEject();1529 return qobject_cast<AttachmentItem*>(item)->attIsTempEject(); 1530 1530 return false; 1531 1531 } … … 1534 1534 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1535 1535 if (item->rtti() == AbstractItem::Type_AttachmentItem) 1536 return static_cast <AttachmentItem*>(item)->attIsNonRotational();1536 return qobject_cast<AttachmentItem*>(item)->attIsNonRotational(); 1537 1537 return false; 1538 1538 } … … 1541 1541 if (AbstractItem *item = static_cast<AbstractItem*>(aIndex.internalPointer())) 1542 1542 if (item->rtti() == AbstractItem::Type_AttachmentItem) 1543 return static_cast<AttachmentItem*>(item)->attIsHotPluggable();1543 return qobject_cast<AttachmentItem*>(item)->attIsHotPluggable(); 1544 1544 return false; 1545 1545 } … … 1548 1548 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1549 1549 if (item->rtti() == AbstractItem::Type_AttachmentItem) 1550 return static_cast <AttachmentItem*>(item)->attSize();1550 return qobject_cast<AttachmentItem*>(item)->attSize(); 1551 1551 return QString(); 1552 1552 } … … 1555 1555 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1556 1556 if (item->rtti() == AbstractItem::Type_AttachmentItem) 1557 return static_cast <AttachmentItem*>(item)->attLogicalSize();1557 return qobject_cast<AttachmentItem*>(item)->attLogicalSize(); 1558 1558 return QString(); 1559 1559 } … … 1562 1562 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1563 1563 if (item->rtti() == AbstractItem::Type_AttachmentItem) 1564 return static_cast <AttachmentItem*>(item)->attLocation();1564 return qobject_cast<AttachmentItem*>(item)->attLocation(); 1565 1565 return QString(); 1566 1566 } … … 1569 1569 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1570 1570 if (item->rtti() == AbstractItem::Type_AttachmentItem) 1571 return static_cast <AttachmentItem*>(item)->attFormat();1571 return qobject_cast<AttachmentItem*>(item)->attFormat(); 1572 1572 return QString(); 1573 1573 } … … 1576 1576 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1577 1577 if (item->rtti() == AbstractItem::Type_AttachmentItem) 1578 return static_cast <AttachmentItem*>(item)->attDetails();1578 return qobject_cast<AttachmentItem*>(item)->attDetails(); 1579 1579 return QString(); 1580 1580 } … … 1583 1583 if (AbstractItem *item = static_cast <AbstractItem*> (aIndex.internalPointer())) 1584 1584 if (item->rtti() == AbstractItem::Type_AttachmentItem) 1585 return static_cast <AttachmentItem*>(item)->attUsage();1585 return qobject_cast<AttachmentItem*>(item)->attUsage(); 1586 1586 return QString(); 1587 1587 } … … 1590 1590 if (AbstractItem *pItem = static_cast<AbstractItem*>(aIndex.internalPointer())) 1591 1591 if (pItem->rtti() == AbstractItem::Type_AttachmentItem) 1592 return static_cast<AttachmentItem*>(pItem)->attEncryptionPasswordID();1592 return qobject_cast<AttachmentItem*>(pItem)->attEncryptionPasswordID(); 1593 1593 return QString(); 1594 1594 } … … 1687 1687 if (item->rtti() == AbstractItem::Type_ControllerItem) 1688 1688 { 1689 static_cast <ControllerItem*> (item)->setCtrName(aValue.toString());1689 qobject_cast<ControllerItem*>(item)->setCtrName(aValue.toString()); 1690 1690 emit dataChanged (aIndex, aIndex); 1691 1691 return true; … … 1699 1699 { 1700 1700 /* Acquire controller item and requested storage bus type: */ 1701 ControllerItem *pItemController = static_cast<ControllerItem*>(pItem);1701 ControllerItem *pItemController = qobject_cast<ControllerItem*>(pItem); 1702 1702 const KStorageBus enmNewCtrBusType = aValue.value<KStorageBus>(); 1703 1703 … … 1738 1738 foreach (AbstractItem *pChildItem, pItemController->attachments()) 1739 1739 { 1740 AttachmentItem *pChildItemAttachment = static_cast<AttachmentItem*>(pChildItem);1740 AttachmentItem *pChildItemAttachment = qobject_cast<AttachmentItem*>(pChildItem); 1741 1741 const SlotsList availableSlots = pChildItemAttachment->attSlots(); 1742 1742 const StorageSlot currentSlot = pChildItemAttachment->attSlot(); … … 1755 1755 if (item->rtti() == AbstractItem::Type_ControllerItem) 1756 1756 { 1757 static_cast <ControllerItem*> (item)->setCtrType (aValue.value<KStorageControllerType>());1757 qobject_cast<ControllerItem*>(item)->setCtrType(aValue.value<KStorageControllerType>()); 1758 1758 emit dataChanged (aIndex, aIndex); 1759 1759 return true; … … 1766 1766 if (item->rtti() == AbstractItem::Type_ControllerItem) 1767 1767 { 1768 static_cast <ControllerItem*> (item)->setPortCount(aValue.toUInt());1768 qobject_cast<ControllerItem*>(item)->setPortCount(aValue.toUInt()); 1769 1769 emit dataChanged (aIndex, aIndex); 1770 1770 return true; … … 1777 1777 if (item->rtti() == AbstractItem::Type_ControllerItem) 1778 1778 { 1779 static_cast <ControllerItem*> (item)->setCtrUseIoCache(aValue.toBool());1779 qobject_cast<ControllerItem*>(item)->setCtrUseIoCache(aValue.toBool()); 1780 1780 emit dataChanged (aIndex, aIndex); 1781 1781 return true; … … 1788 1788 if (item->rtti() == AbstractItem::Type_AttachmentItem) 1789 1789 { 1790 static_cast <AttachmentItem*> (item)->setAttSlot (aValue.value<StorageSlot>());1790 qobject_cast<AttachmentItem*>(item)->setAttSlot(aValue.value<StorageSlot>()); 1791 1791 emit dataChanged (aIndex, aIndex); 1792 1792 sort(); … … 1800 1800 if (item->rtti() == AbstractItem::Type_AttachmentItem) 1801 1801 { 1802 static_cast <AttachmentItem*> (item)->setAttDevice (aValue.value<KDeviceType>());1802 qobject_cast<AttachmentItem*>(item)->setAttDevice(aValue.value<KDeviceType>()); 1803 1803 emit dataChanged (aIndex, aIndex); 1804 1804 return true; … … 1811 1811 if (item->rtti() == AbstractItem::Type_AttachmentItem) 1812 1812 { 1813 static_cast <AttachmentItem*> (item)->setAttMediumId(aValue.toUuid());1813 qobject_cast<AttachmentItem*>(item)->setAttMediumId(aValue.toUuid()); 1814 1814 emit dataChanged (aIndex, aIndex); 1815 1815 return true; … … 1822 1822 if (item->rtti() == AbstractItem::Type_AttachmentItem) 1823 1823 { 1824 static_cast <AttachmentItem*> (item)->setAttIsPassthrough(aValue.toBool());1824 qobject_cast<AttachmentItem*>(item)->setAttIsPassthrough(aValue.toBool()); 1825 1825 emit dataChanged (aIndex, aIndex); 1826 1826 return true; … … 1833 1833 if (item->rtti() == AbstractItem::Type_AttachmentItem) 1834 1834 { 1835 static_cast <AttachmentItem*> (item)->setAttIsTempEject(aValue.toBool());1835 qobject_cast<AttachmentItem*>(item)->setAttIsTempEject(aValue.toBool()); 1836 1836 emit dataChanged (aIndex, aIndex); 1837 1837 return true; … … 1844 1844 if (item->rtti() == AbstractItem::Type_AttachmentItem) 1845 1845 { 1846 static_cast <AttachmentItem*> (item)->setAttIsNonRotational(aValue.toBool());1846 qobject_cast<AttachmentItem*>(item)->setAttIsNonRotational(aValue.toBool()); 1847 1847 emit dataChanged (aIndex, aIndex); 1848 1848 return true; … … 1855 1855 if (item->rtti() == AbstractItem::Type_AttachmentItem) 1856 1856 { 1857 static_cast<AttachmentItem*>(item)->setAttIsHotPluggable(aValue.toBool());1857 qobject_cast<AttachmentItem*>(item)->setAttIsHotPluggable(aValue.toBool()); 1858 1858 emit dataChanged(aIndex, aIndex); 1859 1859 return true; … … 1932 1932 /* Get iterated controller item: */ 1933 1933 AbstractItem *pItemLevel1 = mRootItem->childItem(iItemLevel1Pos); 1934 ControllerItem *pControllerItem = static_cast<ControllerItem*>(pItemLevel1);1934 ControllerItem *pControllerItem = qobject_cast<ControllerItem*>(pItemLevel1); 1935 1935 /* Count of attachment items: */ 1936 1936 int iItemLevel2Count = pItemLevel1->childCount(); … … 1942 1942 /* Get iterated attachment item: */ 1943 1943 AbstractItem *pItemLevel2 = pItemLevel1->childItem(iItemLevel2Pos); 1944 AttachmentItem *pAttachmentItem = static_cast<AttachmentItem*>(pItemLevel2);1944 AttachmentItem *pAttachmentItem = qobject_cast<AttachmentItem*>(pItemLevel2); 1945 1945 /* Get iterated attachment storage slot: */ 1946 1946 StorageSlot attachmentSlot = pAttachmentItem->attSlot(); … … 1950 1950 /* Get sorted attachment item: */ 1951 1951 AbstractItem *pNewItemLevel2 = newAttachments[iInsertPosition]; 1952 AttachmentItem *pNewAttachmentItem = static_cast<AttachmentItem*>(pNewItemLevel2);1952 AttachmentItem *pNewAttachmentItem = qobject_cast<AttachmentItem*>(pNewItemLevel2); 1953 1953 /* Get sorted attachment storage slot: */ 1954 1954 StorageSlot newAttachmentSlot = pNewAttachmentItem->attSlot(); … … 2029 2029 { 2030 2030 currentMap.insert((KStorageBus)iStorageBusType, 2031 static_cast<RootItem*>(mRootItem)->childCount((KStorageBus)iStorageBusType));2031 qobject_cast<RootItem*>(mRootItem)->childCount((KStorageBus)iStorageBusType)); 2032 2032 } 2033 2033 return currentMap; … … 2065 2065 QStyle::State state = aOption.state; 2066 2066 QRect rect = aOption.rect; 2067 const StorageModel *model = qobject_cast <const StorageModel*>(aIndex.model());2067 const StorageModel *model = qobject_cast<const StorageModel*>(aIndex.model()); 2068 2068 Assert (model); 2069 2069 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.h
r78545 r78596 227 227 class SHARED_LIBRARY_STUFF RootItem : public AbstractItem 228 228 { 229 Q_OBJECT; 230 229 231 public: 230 232 … … 253 255 class SHARED_LIBRARY_STUFF ControllerItem : public AbstractItem 254 256 { 257 Q_OBJECT; 258 255 259 public: 256 260 … … 308 312 class SHARED_LIBRARY_STUFF AttachmentItem : public AbstractItem 309 313 { 314 Q_OBJECT; 315 310 316 public: 311 317
Note:
See TracChangeset
for help on using the changeset viewer.