- Timestamp:
- Mar 18, 2019 12:47:30 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 129417
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItem.cpp
r77723 r77756 476 476 pParentItem->open(false); 477 477 } 478 /* Make sure we scroll to the item's rectangle: */479 pParentItem->makeSureItemIsVisible(this);480 478 } 481 479 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItem.h
r77701 r77756 200 200 /** Makes sure item is visible. */ 201 201 virtual void makeSureItsVisible(); 202 /** Makes sure passed child @a pItem is visible. */ 202 /** Makes sure passed @a pItem is visible within the current root item. 203 * @note Please keep in mind that any group item can be a root, but there 204 * is just one model root item at the same time, accessible via model's 205 * root() getter, and this API can be called for current root item only, 206 * because this is root item who performs actual scrolling, while 207 * @a pItem itself can be on any level of embedding. */ 203 208 virtual void makeSureItemIsVisible(UIChooserItem *pItem) { Q_UNUSED(pItem); } 204 209 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.cpp
r77723 r77756 259 259 260 260 /* Make sure item visible: */ 261 AssertPtrReturnVoid(parentItem());262 parentItem()->toGroupItem()->makeSureItemIsVisible(this);261 if (model()->root()) 262 model()->root()->makeSureItemIsVisible(this); 263 263 264 264 /* Assign name-editor text: */
Note:
See TracChangeset
for help on using the changeset viewer.