VirtualBox

Changeset 63894 in vbox


Ignore:
Timestamp:
Sep 19, 2016 4:04:36 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
110766
Message:

FE/Qt: bugref:6899: Accessibility support (step 36): Selector UI: Extend Snapshot tree with the additional API required to be visible by the accessibility interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISnapshotPane.cpp

    r63893 r63894  
    160160    /** Constructs snapshot tree passing @a pParent to the base-class. */
    161161    UISnapshotTree(QWidget *pParent);
     162
     163    /** Returns the number of children. */
     164    int childCount() const;
     165    /** Returns the child snapshot item with @a iIndex. */
     166    UISnapshotItem *childSnapshotItem(int iIndex) const;
    162167};
    163168
     
    495500// #endif
    496501#endif /* QT_VERSION < 0x050000 */
     502}
     503
     504int UISnapshotTree::childCount() const
     505{
     506    /* Return the number of children: */
     507    return invisibleRootItem()->childCount();
     508}
     509
     510UISnapshotItem *UISnapshotTree::childSnapshotItem(int iIndex) const
     511{
     512    /* Return the child snapshot item with iIndex if any: */
     513    return invisibleRootItem()->child(iIndex) ? UISnapshotPane::toSnapshotItem(invisibleRootItem()->child(iIndex)) : 0;
    497514}
    498515
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