VirtualBox

Changeset 108275 in vbox


Ignore:
Timestamp:
Feb 18, 2025 12:04:26 PM (3 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167603
Message:

FE/Qt: bugref:10814: VBox Manager / Tool-pane: Update global tool actions in the same place where machine tool actions.

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

Legend:

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

    r108172 r108275  
    36063606    if (m_pWidget)
    36073607    {
     3608        switch (m_pWidget->currentGlobalTool())
     3609        {
     3610            case UIToolType_Home:
     3611            {
     3612                actionPool()->action(UIActionIndexMN_M_File_M_Tools_T_HomeScreen)->setChecked(true);
     3613                break;
     3614            }
     3615            case UIToolType_Machines:
     3616            {
     3617                actionPool()->action(UIActionIndexMN_M_File_M_Tools_T_MachineManager)->setChecked(true);
     3618                break;
     3619            }
     3620            case UIToolType_Extensions:
     3621            {
     3622                actionPool()->action(UIActionIndexMN_M_File_M_Tools_T_ExtensionPackManager)->setChecked(true);
     3623                break;
     3624            }
     3625            case UIToolType_Media:
     3626            {
     3627                actionPool()->action(UIActionIndexMN_M_File_M_Tools_T_VirtualMediaManager)->setChecked(true);
     3628                break;
     3629            }
     3630            case UIToolType_Network:
     3631            {
     3632                actionPool()->action(UIActionIndexMN_M_File_M_Tools_T_NetworkManager)->setChecked(true);
     3633                break;
     3634            }
     3635            case UIToolType_Cloud:
     3636            {
     3637                actionPool()->action(UIActionIndexMN_M_File_M_Tools_T_CloudProfileManager)->setChecked(true);
     3638                break;
     3639            }
     3640            case UIToolType_Activities:
     3641            {
     3642                actionPool()->action(UIActionIndexMN_M_File_M_Tools_T_VMActivityOverview)->setChecked(true);
     3643                break;
     3644            }
     3645            default:
     3646                break;
     3647        }
     3648
    36083649        switch (m_pWidget->currentMachineTool())
    36093650        {
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.cpp

    r108266 r108275  
    179179    /* Notify about selection change: */
    180180    emit sigSelectionChanged(toolsType());
    181 
    182     /* Adjust corresponding actions finally: */
    183     const UIToolType enmType = currentItem() ? currentItem()->itemType() : UIToolType_Home;
    184     QMap<UIToolType, UIAction*> actions;
    185     actions[UIToolType_Home] = actionPool()->action(UIActionIndexMN_M_File_M_Tools_T_HomeScreen);
    186     actions[UIToolType_Machines] = actionPool()->action(UIActionIndexMN_M_File_M_Tools_T_MachineManager);
    187     actions[UIToolType_Extensions] = actionPool()->action(UIActionIndexMN_M_File_M_Tools_T_ExtensionPackManager);
    188     actions[UIToolType_Media] = actionPool()->action(UIActionIndexMN_M_File_M_Tools_T_VirtualMediaManager);
    189     actions[UIToolType_Network] = actionPool()->action(UIActionIndexMN_M_File_M_Tools_T_NetworkManager);
    190     actions[UIToolType_Cloud] = actionPool()->action(UIActionIndexMN_M_File_M_Tools_T_CloudProfileManager);
    191     actions[UIToolType_Activities] = actionPool()->action(UIActionIndexMN_M_File_M_Tools_T_VMActivityOverview);
    192     if (actions.contains(enmType))
    193         actions.value(enmType)->setChecked(true);
    194181}
    195182
Note: See TracChangeset for help on using the changeset viewer.

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