Changeset 24593 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Nov 11, 2009 3:24:45 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxSnapshotsWgt.cpp
r24514 r24593 46 46 , mSnapshot (aSnapshot) 47 47 { 48 recache();49 48 } 50 49 … … 54 53 , mSnapshot (aSnapshot) 55 54 { 56 recache();57 55 } 58 56 … … 63 61 { 64 62 updateCurrentState (mMachine.GetState()); 65 recache();66 63 } 67 64 … … 72 69 { 73 70 updateCurrentState (mMachine.GetState()); 74 recache();75 71 } 76 72 … … 156 152 void adjustText() 157 153 { 154 if (!treeWidget()) return; /* only for initialised items */ 158 155 QFontMetrics metrics (font (0)); 159 156 int hei0 = (metrics.height() > 16 ? … … 645 642 646 643 /* Add the "current state" item */ 647 new SnapshotWgtItem (mCurSnapshotItem, mMachine); 644 SnapshotWgtItem *csi = new SnapshotWgtItem (mCurSnapshotItem, mMachine); 645 csi->recache(); 648 646 649 647 SnapshotWgtItem *cur = findItem (selectedItem); … … 663 661 /* Add the "current state" item */ 664 662 SnapshotWgtItem *csi = new SnapshotWgtItem (mTreeWidget, mMachine); 663 csi->recache(); 665 664 666 665 mTreeWidget->setCurrentItem (csi); … … 698 697 SnapshotWgtItem *item = aItem ? new SnapshotWgtItem (aItem, aSnapshot) : 699 698 new SnapshotWgtItem (mTreeWidget, aSnapshot); 699 item->recache(); 700 700 701 701 if (mMachine.GetCurrentSnapshot().GetId() == aSnapshot.GetId())
Note:
See TracChangeset
for help on using the changeset viewer.