- Timestamp:
- Oct 29, 2018 1:10:42 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 126222
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneMachine.cpp
r75093 r75144 124 124 connect(this, &UIToolPaneMachine::sigToggleFinished, m_pPaneDetails, &UIDetails::sigToggleFinished); 125 125 connect(m_pPaneDetails, &UIDetails::sigLinkClicked, this, &UIToolPaneMachine::sigLinkClicked); 126 m_pPaneDetails->setItems(m_items); 126 127 127 128 /* Add into layout: */ … … 146 147 connect(m_pPaneSnapshots, &UISnapshotPane::sigCurrentItemChange, 147 148 this, &UIToolPaneMachine::sigCurrentSnapshotItemChange); 149 m_pPaneSnapshots->setMachine(m_comMachine); 148 150 149 151 /* Add into layout: */ … … 166 168 /* Configure pane: */ 167 169 m_pPaneLogViewer->setProperty("ToolType", QVariant::fromValue(UIToolType_Logs)); 170 m_pPaneLogViewer->setMachine(m_comMachine); 168 171 169 172 /* Add into layout: */ … … 224 227 void UIToolPaneMachine::setItems(const QList<UIVirtualMachineItem*> &items) 225 228 { 229 /* Cache passed value: */ 230 m_items = items; 231 226 232 /* Update details pane is it is open: */ 227 233 if (isToolOpened(UIToolType_Details)) 228 234 { 229 235 AssertPtrReturnVoid(m_pPaneDetails); 230 m_pPaneDetails->setItems( items);236 m_pPaneDetails->setItems(m_items); 231 237 } 232 238 } … … 234 240 void UIToolPaneMachine::setMachine(const CMachine &comMachine) 235 241 { 242 /* Cache passed value: */ 243 m_comMachine = comMachine; 244 236 245 /* Update snapshots pane is it is open: */ 237 246 if (isToolOpened(UIToolType_Snapshots)) 238 247 { 239 248 AssertPtrReturnVoid(m_pPaneSnapshots); 240 m_pPaneSnapshots->setMachine( comMachine);249 m_pPaneSnapshots->setMachine(m_comMachine); 241 250 } 242 251 /* Update logviewer pane is it is open: */ … … 244 253 { 245 254 AssertPtrReturnVoid(m_pPaneLogViewer); 246 m_pPaneLogViewer->setMachine( comMachine);255 m_pPaneLogViewer->setMachine(m_comMachine); 247 256 } 248 257 } -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneMachine.h
r75093 r75144 25 25 #include "UIExtraDataDefs.h" 26 26 27 /* COM includes: */ 28 #include "COMEnums.h" 29 #include "CMachine.h" 30 27 31 /* Forward declarations: */ 28 32 class QHBoxLayout; … … 35 39 class UIVirtualMachineItem; 36 40 class UIVMLogViewerWidget; 37 class CMachine;38 41 39 42 … … 113 116 /** Holds the Logviewer pane instance. */ 114 117 UIVMLogViewerWidget *m_pPaneLogViewer; 118 119 /** Holds the cache of passed items. */ 120 QList<UIVirtualMachineItem*> m_items; 121 /** Holds the cache of passed machine. */ 122 CMachine m_comMachine; 115 123 }; 116 124
Note:
See TracChangeset
for help on using the changeset viewer.