Changeset 77313 in vbox
- Timestamp:
- Feb 14, 2019 3:45:36 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 128840
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r77027 r77313 204 204 { 205 205 /* Make sure chosen item fetched: */ 206 sltHandleChooserPaneIndexChange( false /* update details? */, false /* update snapshots? */, false /* update the logviewer? */);206 sltHandleChooserPaneIndexChange(); 207 207 208 208 #ifdef VBOX_WS_MAC … … 216 216 } 217 217 218 void UIVirtualBoxManagerWidget::sltHandleChooserPaneIndexChange(bool fUpdateDetails /* = true */, 219 bool fUpdateSnapshots /* = true */, 220 bool fUpdateLogs /* = true */) 218 void UIVirtualBoxManagerWidget::sltHandleChooserPaneIndexChange() 221 219 { 222 220 /* Let the parent know: */ … … 267 265 sltHandleToolsPaneIndexChange(); 268 266 269 /* Propagate current items to update the Details-pane (if requested): */ 270 if (fUpdateDetails) 271 m_pPaneToolsMachine->setItems(currentItems()); 272 /* Propagate current machine to update the Snapshots-pane or/and Logviewer-pane (if requested): */ 273 if (fUpdateSnapshots || fUpdateLogs) 274 m_pPaneToolsMachine->setMachine(pItem->machine()); 267 /* Propagate current items to update the Details-pane: */ 268 m_pPaneToolsMachine->setItems(currentItems()); 269 /* Propagate current machine to update the Snapshots-pane or/and Logviewer-pane: */ 270 m_pPaneToolsMachine->setMachine(pItem->machine()); 275 271 } 276 272 else … … 310 306 } 311 307 /* Then handle current item change (again!): */ 312 sltHandleChooserPaneIndexChange Default();308 sltHandleChooserPaneIndexChange(); 313 309 } 314 310 … … 529 525 /* Chooser-pane connections: */ 530 526 connect(m_pPaneChooser, &UIChooser::sigSelectionChanged, 531 this, &UIVirtualBoxManagerWidget::sltHandleChooserPaneIndexChange Default);527 this, &UIVirtualBoxManagerWidget::sltHandleChooserPaneIndexChange); 532 528 connect(m_pPaneChooser, &UIChooser::sigSlidingStarted, 533 529 m_pPaneToolsMachine, &UIToolPaneMachine::sigSlidingStarted); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.h
r76581 r77313 145 145 /** @name Common stuff. 146 146 * @{ */ 147 /** Handles signal about Chooser-pane index change. 148 * @param fUpdateDetails Brings whether details should be updated. 149 * @param fUpdateSnapshots Brings whether snapshots should be updated. 150 * @param fUpdateLogs Brings whether log-viewer should be updated. */ 151 void sltHandleChooserPaneIndexChange(bool fUpdateDetails = true, 152 bool fUpdateSnapshots = true, 153 bool fUpdateLogs = true); 154 /** Handles signal about Chooser-pane index change the default way. */ 155 void sltHandleChooserPaneIndexChangeDefault() { sltHandleChooserPaneIndexChange(); } 147 /** Handles signal about Chooser-pane index change. */ 148 void sltHandleChooserPaneIndexChange(); 156 149 157 150 /** Handles sliding animation complete signal.
Note:
See TracChangeset
for help on using the changeset viewer.