VirtualBox

Changeset 64125 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 3, 2016 3:29:22 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6899: Accessibility support (step 66): Extend QITreeWidget with additional API required for accessibility interface.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/extensions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QITreeWidget.cpp

    r64109 r64125  
    3030
    3131
    32 QITreeWidget::QITreeWidget(QWidget *aParent)
    33     : QTreeWidget(aParent)
     32QITreeWidget::QITreeWidget(QWidget *pParent)
     33    : QTreeWidget(pParent)
    3434{
    3535}
     
    4040    for (int i = 0; i < topLevelItemCount(); ++i)
    4141        topLevelItem(i)->setSizeHint(0, sizeHint);
     42}
     43
     44int QITreeWidget::childCount() const
     45{
     46    /* Return the number of children: */
     47    return invisibleRootItem()->childCount();
     48}
     49
     50QTreeWidgetItem *QITreeWidget::childItem(int iIndex) const
     51{
     52    /* Return the child item with iIndex if any: */
     53    return invisibleRootItem()->child(iIndex);
    4254}
    4355
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QITreeWidget.h

    r64109 r64125  
    4343    void setSizeHintForItems(const QSize &sizeHint);
    4444
     45    /** Returns the number of children. */
     46    int childCount() const;
     47    /** Returns the child item with @a iIndex. */
     48    QTreeWidgetItem *childItem(int iIndex) const;
     49
    4550protected:
    4651
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