VirtualBox

Changeset 64777 in vbox


Ignore:
Timestamp:
Dec 2, 2016 1:02:09 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6899: Accessibility support (step 145): Extending QITreeWidgetItem accessibility support with check-state.

File:
1 edited

Legend:

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

    r64479 r64777  
    210210        return QAccessible::List;
    211211
    212     /* TreeItem by default: */
     212    /* ListItem by default: */
    213213    return QAccessible::ListItem;
    214214}
     
    231231        state.focused = true;
    232232        state.selected = true;
     233    }
     234
     235    /* Compose the state of checked item: */
     236    if (   item()
     237        && item()->checkState(0) != Qt::Unchecked)
     238    {
     239        state.checked = true;
     240        if (item()->checkState(0) == Qt::PartiallyChecked)
     241            state.checkStateMixed = true;
    233242    }
    234243
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