Changeset 42583 in vbox
- Timestamp:
- Aug 3, 2012 2:39:35 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserHandlerKeyboard.cpp
r42543 r42583 24 24 #include "UIGChooserHandlerKeyboard.h" 25 25 #include "UIGChooserModel.h" 26 #include "UIGChooserItemGroup.h" 26 27 27 28 UIGChooserHandlerKeyboard::UIGChooserHandlerKeyboard(UIGChooserModel *pParent) … … 233 234 return true; 234 235 } 236 case Qt::Key_Space: 237 { 238 /* If there is a focus item: */ 239 if (UIGChooserItem *pFocusItem = model()->focusItem()) 240 { 241 /* Of the group type: */ 242 if (pFocusItem->type() == UIGChooserItemType_Group) 243 { 244 /* Toggle that group: */ 245 UIGChooserItemGroup *pGroupItem = pFocusItem->toGroupItem(); 246 if (pGroupItem->closed()) 247 pGroupItem->open(); 248 else 249 pGroupItem->close(); 250 /* Filter that event out: */ 251 return true; 252 } 253 } 254 /* Pass event to other items: */ 255 return false; 256 } 235 257 default: 236 258 break;
Note:
See TracChangeset
for help on using the changeset viewer.