Changeset 63720 in vbox
- Timestamp:
- Sep 5, 2016 3:45:33 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 110495
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItem.cpp
r63699 r63720 94 94 /* Make sure item still alive: */ 95 95 AssertPtrReturn(item(), 0); 96 97 96 /* Make sure index is valid: */ 98 if (iIndex < childCount()) 99 return QAccessible::queryAccessibleInterface(item()->items().at(iIndex)); 100 101 /* Null by default: */ 102 return 0; 97 AssertReturn(iIndex >= 0 && iIndex < childCount(), 0); 98 99 /* Return the child with the passed iIndex: */ 100 return QAccessible::queryAccessibleInterface(item()->items().at(iIndex)); 103 101 } 104 102 … … 150 148 AssertPtrReturn(item(), QAccessible::NoRole); 151 149 152 /* Return the number of group children: */150 /* Return the role of group: */ 153 151 if (item()->type() == UIGChooserItemType_Group) 154 152 return QAccessible::List; -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserView.cpp
r63697 r63720 72 72 /* Make sure view still alive: */ 73 73 AssertPtrReturn(view(), 0); 74 /* Make sure index is valid: */ 75 AssertReturn(iIndex >= 0 && iIndex < childCount(), 0); 74 76 75 /* Make sure index is valid: */ 76 if (iIndex < childCount()) 77 return QAccessible::queryAccessibleInterface(view()->chooser()->model()->root()->items().at(iIndex)); 78 79 /* Null by default: */ 80 return 0; 77 /* Return the child with the passed iIndex: */ 78 return QAccessible::queryAccessibleInterface(view()->chooser()->model()->root()->items().at(iIndex)); 81 79 } 82 80
Note:
See TracChangeset
for help on using the changeset viewer.