Changeset 42553 in vbox
- Timestamp:
- Aug 2, 2012 5:36:40 PM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
-
globals/UIMainEventListener.cpp (modified) (2 diffs)
-
selector/UISelectorWindow.cpp (modified) (4 diffs)
-
selector/UISelectorWindow.h (modified) (1 diff)
-
selector/UIVirtualBoxEventHandler.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.cpp
r41587 r42553 32 32 #include "CMachineRegisteredEvent.h" 33 33 #include "CSessionStateChangedEvent.h" 34 #include "CSnapshotTakenEvent.h" 35 #include "CSnapshotDeletedEvent.h" 34 36 #include "CSnapshotChangedEvent.h" 35 37 #include "CMousePointerShapeChangedEvent.h" … … 128 130 break; 129 131 } 130 /* Not used:131 132 case KVBoxEventType_OnSnapshotTaken: 133 { 134 CSnapshotTakenEvent es(pEvent); 135 emit sigSnapshotChange(es.GetMachineId(), es.GetSnapshotId()); 136 break; 137 } 132 138 case KVBoxEventType_OnSnapshotDeleted: 133 */ 139 { 140 CSnapshotDeletedEvent es(pEvent); 141 emit sigSnapshotChange(es.GetMachineId(), es.GetSnapshotId()); 142 break; 143 } 134 144 case KVBoxEventType_OnSnapshotChanged: 135 145 { -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r42547 r42553 135 135 } 136 136 137 void UISelectorWindow::sltSnapshotChanged(QString strId) 138 { 139 /* Get current item: */ 140 UIVMItem *pCurrentItem = currentItem(); 141 142 /* Make sure current item present: */ 143 if (!pCurrentItem) 144 return; 145 146 /* If signal is for current item: */ 147 if (pCurrentItem->id() == strId) 148 m_pVMDesktop->updateSnapshots(pCurrentItem, pCurrentItem->machine()); 149 } 150 137 151 void UISelectorWindow::sltDetailsViewIndexChanged(int iWidgetIndex) 138 152 { … … 784 798 m_pContainer->setCurrentWidget(m_pDetails); 785 799 786 CMachine m = pItem->machine();787 QList<CMachine> machines;788 for (int i = 0; i < items.size(); ++i)789 machines << items[i]->machine();790 800 KMachineState state = pItem->machineState(); 791 801 … … 793 803 m_pDetails->setItems(currentItems()); 794 804 if (fRefreshSnapshots) 795 m_pVMDesktop->updateSnapshots(pItem, m);805 m_pVMDesktop->updateSnapshots(pItem, pItem->machine()); 796 806 797 807 /* Update the Start button action appearance: */ … … 1451 1461 connect(&vboxGlobal(), SIGNAL(sigTrayIconShow(bool)), this, SLOT(sltTrayIconShow(bool))); 1452 1462 #endif /* VBOX_GUI_WITH_SYSTRAY */ 1463 1464 /* Global event handlers: */ 1465 connect(gVBoxEvents, SIGNAL(sigSnapshotChange(QString, QString)), this, SLOT(sltSnapshotChanged(QString))); 1453 1466 } 1454 1467 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h
r42542 r42553 62 62 63 63 private slots: 64 65 /* Handler: Snapshot-view stuff: */ 66 void sltSnapshotChanged(QString strId); 64 67 65 68 /* Handler: Details-view stuff: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVirtualBoxEventHandler.cpp
r41587 r42553 61 61 << KVBoxEventType_OnMachineRegistered 62 62 << KVBoxEventType_OnSessionStateChanged 63 << KVBoxEventType_OnSnapshotTaken 64 << KVBoxEventType_OnSnapshotDeleted 63 65 << KVBoxEventType_OnSnapshotChanged; 64 66
Note:
See TracChangeset
for help on using the changeset viewer.

