VirtualBox

Changeset 107333 in vbox


Ignore:
Timestamp:
Dec 16, 2024 5:31:41 PM (5 weeks ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10814: VBox Manager: Cleanup for Machine Manager widget's parent connections.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIMachineManagerWidget.cpp

    r107332 r107333  
    252252}
    253253
    254 void UIMachineManagerWidget::switchToVMActivityPane(const QUuid &uMachineId)
    255 {
    256     AssertPtrReturnVoid(m_pPaneChooser);
    257     AssertPtrReturnVoid(m_pMenuTools);
    258     m_pPaneChooser->setCurrentMachine(uMachineId);
    259     m_pMenuTools->setToolsType(UIToolType_VMActivity);
    260 }
    261 
    262254bool UIMachineManagerWidget::isCurrentStateItemSelected() const
    263255{
     
    441433    // smaller size often being ignored until it is actually shown.
    442434    pMenu->resize(ourGeo.size());
     435}
     436
     437void UIMachineManagerWidget::sltSwitchToVMActivityPane(const QUuid &uMachineId)
     438{
     439    AssertPtrReturnVoid(m_pPaneChooser);
     440    AssertPtrReturnVoid(m_pMenuTools);
     441    m_pPaneChooser->setCurrentMachine(uMachineId);
     442    m_pMenuTools->setToolsType(UIToolType_VMActivity);
    443443}
    444444
     
    541541    connect(gEDataManager, &UIExtraDataManager::sigSettingsExpertModeChange,
    542542            this, &UIMachineManagerWidget::sltHandleSettingsExpertModeChange);
     543
     544    /* Parent connections: */
     545    connect(m_pParent, &UIToolPaneGlobal::sigSwitchToMachineActivityPane,
     546            this, &UIMachineManagerWidget::sltSwitchToVMActivityPane);
    543547
    544548    /* Splitter connections: */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIMachineManagerWidget.h

    r107332 r107333  
    188188        /** Closes pane tool of passed @a enmType. */
    189189        void closeTool(UIToolType enmType);
    190 
    191         /** Switches to VM Activity pane of machine with @a uMachineId. */
    192         void switchToVMActivityPane(const QUuid &uMachineId);
    193190    /** @} */
    194191
     
    259256          * @param  enmType  Brings current tool type. */
    260257        void sltHandleToolsMenuIndexChange(UIToolType enmType) { switchToolTo(enmType); }
     258
     259        /** Switches to VM Activity pane of machine with @a uMachineId. */
     260        void sltSwitchToVMActivityPane(const QUuid &uMachineId);
    261261    /** @} */
    262262
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette