- Timestamp:
- Jan 12, 2018 12:12:08 PM (7 years ago)
- 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/UIGChooserModel.cpp
r70453 r70552 351 351 } 352 352 353 UIGChooserItem* UIGChooserModel::findClosestUnselectedItem() const 354 { 355 /* 356 * Take the focus item (if any) as a starting point and find 357 * the closest non-selected item. 358 */ 353 UIGChooserItem *UIGChooserModel::findClosestUnselectedItem() const 354 { 355 /* Take the focus item (if any) as a starting point 356 * and find the closest non-selected item. */ 359 357 UIGChooserItem *pItem = focusItem(); 360 358 if (!pItem) … … 371 369 if (!currentItems().contains(pItem)) 372 370 return pItem; 373 idxBefore--;371 --idxBefore; 374 372 } 375 373 if (idxAfter < navigationList().size()) … … 378 376 if (!currentItems().contains(pItem)) 379 377 return pItem; 380 idxAfter++;378 ++idxAfter; 381 379 } 382 380 } -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.h
r70452 r70552 120 120 void addToCurrentItems(UIGChooserItem *pItem); 121 121 void removeFromCurrentItems(UIGChooserItem *pItem); 122 UIGChooserItem *findClosestUnselectedItem() const;122 UIGChooserItem *findClosestUnselectedItem() const; 123 123 void makeSureSomeItemIsSelected(); 124 124 void notifyCurrentItemChanged();
Note:
See TracChangeset
for help on using the changeset viewer.