VirtualBox

Changeset 63763 in vbox for trunk


Ignore:
Timestamp:
Sep 8, 2016 1:05:43 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6899: Accessibility support (step 16): Selector UI: Extend chooser item accessibility state with expandable/expanded flags.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItem.cpp

    r63731 r63763  
    162162        AssertPtrReturn(item(), QAccessible::State());
    163163
    164         /* Compose/return the state: */
     164        /* Compose the state: */
    165165        QAccessible::State state;
    166166        state.focusable = true;
    167167        state.selectable = true;
     168
     169        /* Compose the state of current item: */
    168170        if (item() && item() == item()->model()->currentItem())
    169171        {
     
    172174            state.selected = true;
    173175        }
     176
     177        /* Compose the state of group: */
     178        if (item()->type() == UIGChooserItemType_Group)
     179        {
     180            state.expandable = true;
     181            if (!item()->toGroupItem()->isClosed())
     182                state.expanded = true;
     183        }
     184
     185        /* Return the state: */
    174186        return state;
    175187    }
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