VirtualBox

Ignore:
Timestamp:
Nov 24, 2016 4:49:58 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6899: Accessibility support (step 138): Rename some stuff in UIApplianceModelItem to sync it with accessibility interface integration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceEditorWidget.cpp

    r64744 r64745  
    6565    /** Appends the passed @a pChildItem to the item's list of children. */
    6666    void appendChild(UIApplianceModelItem *pChildItem);
    67     /** Returns the child specified by the @a iRow. */
    68     UIApplianceModelItem *child(int iRow) const;
     67    /** Returns the child specified by the @a iIndex. */
     68    UIApplianceModelItem *childItem(int iIndex) const;
    6969
    7070    /** Returns the row of the item in the parent. */
     
    231231}
    232232
    233 UIApplianceModelItem *UIApplianceModelItem::child(int iRow) const
    234 {
    235     return m_childItems.value(iRow);
     233UIApplianceModelItem *UIApplianceModelItem::childItem(int iIndex) const
     234{
     235    return m_childItems.value(iIndex);
    236236}
    237237
     
    252252{
    253253    for (int i = 0; i < childCount(); ++i)
    254         child(i)->putBack(finalStates, finalValues, finalExtraValues);
     254        childItem(i)->putBack(finalStates, finalValues, finalExtraValues);
    255255}
    256256
     
    976976
    977977    UIApplianceModelItem *pItem = !parentIdx.isValid() ? m_pRootItem :
    978                                   static_cast<UIApplianceModelItem*>(parentIdx.internalPointer())->child(iRow);
     978                                  static_cast<UIApplianceModelItem*>(parentIdx.internalPointer())->childItem(iRow);
    979979
    980980    return pItem ? createIndex(iRow, iColumn, pItem) : QModelIndex();
     
    10741074    for (int i = 0; i < pParentItem->childCount(); ++i)
    10751075    {
    1076         pParentItem->child(i)->restoreDefaults();
     1076        pParentItem->childItem(i)->restoreDefaults();
    10771077        restoreDefaults(index(i, 0, parentIdx));
    10781078    }
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