Changeset 107348 in vbox
- Timestamp:
- Dec 18, 2024 11:15:50 AM (4 weeks ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIGlobalToolsManagerWidget.cpp
r107343 r107348 64 64 } 65 65 66 UIMachineManagerWidget *UIGlobalToolsManagerWidget::machineManager() const 67 { 68 return toolPane()->machineManager(); 69 } 70 66 71 UIToolType UIGlobalToolsManagerWidget::menuToolType() const 67 72 { … … 152 157 QString UIGlobalToolsManagerWidget::currentHelpKeyword() const 153 158 { 159 if (toolType() == UIToolType_Machines) 160 { 161 AssertPtrReturn(machineManager(), QString()); 162 return machineManager()->currentHelpKeyword(); 163 } 164 154 165 AssertPtrReturn(toolPane(), QString()); 155 166 return toolPane()->currentHelpKeyword(); … … 237 248 this, &UIGlobalToolsManagerWidget::sltHandleCommitData); 238 249 239 /* Global VBox extra-dataevent handlers: */250 /* Global COM event handlers: */ 240 251 connect(gEDataManager, &UIExtraDataManager::sigSettingsExpertModeChange, 241 252 this, &UIGlobalToolsManagerWidget::sltHandleSettingsExpertModeChange); … … 262 273 void UIGlobalToolsManagerWidget::cleanupConnections() 263 274 { 264 /* Global VBox extra-dataevent handlers: */275 /* Global COM event handlers: */ 265 276 disconnect(gEDataManager, &UIExtraDataManager::sigSettingsExpertModeChange, 266 277 this, &UIGlobalToolsManagerWidget::sltHandleSettingsExpertModeChange); … … 288 299 { 289 300 return m_pMenu; 290 }291 292 UIMachineManagerWidget *UIGlobalToolsManagerWidget::machineManager() const293 {294 return toolPane()->machineManager();295 301 } 296 302 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIGlobalToolsManagerWidget.h
r107343 r107348 78 78 /** Returns tool-pane instance. */ 79 79 UIToolPaneGlobal *toolPane() const; 80 /** Returns Machine Manager reference. */ 81 UIMachineManagerWidget *machineManager() const; 80 82 81 83 /** Returns menu tool type. */ … … 154 156 /** Returns tool-menu instance. */ 155 157 UITools *toolMenu() const; 156 /** Returns Machine Manager reference. */157 UIMachineManagerWidget *machineManager() const;158 158 /** Returns Machine Manager's Chooser-pane reference. */ 159 159 UIChooser *chooser() const;
Note:
See TracChangeset
for help on using the changeset viewer.