Changeset 43544 in vbox for trunk/src/VBox
- Timestamp:
- Oct 4, 2012 1:42:09 PM (12 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
r43543 r43544 211 211 } 212 212 213 void UIGChooserModel::setCurrentItem(UIGChooserItem *pItem) 214 { 215 /* If navigation list contains passed item: */ 216 if (navigationList().contains(pItem)) 217 { 218 /* Pass focus/selection to that item: */ 219 setFocusItem(pItem, true); 220 } 221 else 222 AssertMsgFailed(("Passed item not in navigation list!")); 223 } 224 213 225 void UIGChooserModel::setCurrentItem(int iItemIndex) 214 226 { … … 221 233 else 222 234 AssertMsgFailed(("Passed index out of bounds!")); 223 }224 225 void UIGChooserModel::setCurrentItem(UIGChooserItem *pItem)226 {227 /* If navigation list contains passed item: */228 if (navigationList().contains(pItem))229 {230 /* Pass focus/selection to that item: */231 setFocusItem(pItem, true);232 }233 else234 AssertMsgFailed(("Passed item not in navigation list!"));235 235 } 236 236 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.h
r43542 r43544 114 114 UIGChooserItem* currentItem() const; 115 115 const QList<UIGChooserItem*>& currentItems() const; 116 void setCurrentItem(UIGChooserItem *pItem); 116 117 void setCurrentItem(int iItemIndex); 117 void setCurrentItem(UIGChooserItem *pItem);118 118 void setCurrentItem(const QString &strDefinition); 119 119 void unsetCurrentItem();
Note:
See TracChangeset
for help on using the changeset viewer.