- Timestamp:
- Aug 2, 2007 3:22:47 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxSnapshotsWgt.ui.h
r4005 r4008 445 445 void VBoxSnapshotsWgt::populateSnapshots (const CSnapshot &snapshot, QListViewItem *item) 446 446 { 447 448 447 ListViewItem *si = 0; 449 448 if (item) … … 474 473 if (item) 475 474 { 475 QPoint oldPos (listView->contentsX(), listView->contentsY()); 476 476 listView->ensureItemVisible (item); 477 listView->setContentsPos ( item->height() * item->depth(),477 listView->setContentsPos (listView->treeStepSize() * item->depth(), 478 478 listView->contentsY()); 479 /* Sometimes (here, when both X and Y are changed), affected items 480 * are not properly updated after moving the contents. Fix it. */ 481 if (oldPos != QPoint (listView->contentsX(), listView->contentsY())) 482 listView->triggerUpdate(); 479 483 } 480 484
Note:
See TracChangeset
for help on using the changeset viewer.