Changeset 64745 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Nov 24, 2016 4:49:58 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceEditorWidget.cpp
r64744 r64745 65 65 /** Appends the passed @a pChildItem to the item's list of children. */ 66 66 void appendChild(UIApplianceModelItem *pChildItem); 67 /** Returns the child specified by the @a i Row. */68 UIApplianceModelItem *child (int iRow) const;67 /** Returns the child specified by the @a iIndex. */ 68 UIApplianceModelItem *childItem(int iIndex) const; 69 69 70 70 /** Returns the row of the item in the parent. */ … … 231 231 } 232 232 233 UIApplianceModelItem *UIApplianceModelItem::child (int iRow) const234 { 235 return m_childItems.value(i Row);233 UIApplianceModelItem *UIApplianceModelItem::childItem(int iIndex) const 234 { 235 return m_childItems.value(iIndex); 236 236 } 237 237 … … 252 252 { 253 253 for (int i = 0; i < childCount(); ++i) 254 child (i)->putBack(finalStates, finalValues, finalExtraValues);254 childItem(i)->putBack(finalStates, finalValues, finalExtraValues); 255 255 } 256 256 … … 976 976 977 977 UIApplianceModelItem *pItem = !parentIdx.isValid() ? m_pRootItem : 978 static_cast<UIApplianceModelItem*>(parentIdx.internalPointer())->child (iRow);978 static_cast<UIApplianceModelItem*>(parentIdx.internalPointer())->childItem(iRow); 979 979 980 980 return pItem ? createIndex(iRow, iColumn, pItem) : QModelIndex(); … … 1074 1074 for (int i = 0; i < pParentItem->childCount(); ++i) 1075 1075 { 1076 pParentItem->child (i)->restoreDefaults();1076 pParentItem->childItem(i)->restoreDefaults(); 1077 1077 restoreDefaults(index(i, 0, parentIdx)); 1078 1078 }
Note:
See TracChangeset
for help on using the changeset viewer.