Changeset 87513 in vbox
- Timestamp:
- Feb 1, 2021 3:59:46 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolManager.cpp
r87509 r87513 72 72 UIActionSimpleManagerFileShowExtensionPackManager(UIActionPool *pParent) 73 73 : UIActionSimple(pParent, ":/extension_pack_manager_16px.png", ":/extension_pack_manager_disabled_16px.png") 74 {} 74 { 75 setProperty("UIToolType", QVariant::fromValue(UIToolType_Extensions)); 76 } 75 77 76 78 protected: … … 106 108 UIActionSimpleManagerFileShowVirtualMediaManager(UIActionPool *pParent) 107 109 : UIActionSimple(pParent, ":/media_manager_16px.png", ":/media_manager_disabled_16px.png") 108 {} 110 { 111 setProperty("UIToolType", QVariant::fromValue(UIToolType_Media)); 112 } 109 113 110 114 protected: … … 140 144 UIActionSimpleManagerFileShowHostNetworkManager(UIActionPool *pParent) 141 145 : UIActionSimple(pParent, ":/host_iface_manager_16px.png", ":/host_iface_manager_disabled_16px.png") 142 {} 146 { 147 setProperty("UIToolType", QVariant::fromValue(UIToolType_Network)); 148 } 143 149 144 150 protected: … … 174 180 UIActionSimpleManagerFileShowCloudProfileManager(UIActionPool *pParent) 175 181 : UIActionSimple(pParent, ":/cloud_profile_manager_16px.png", ":/cloud_profile_manager_disabled_16px.png") 176 {} 182 { 183 setProperty("UIToolType", QVariant::fromValue(UIToolType_Cloud)); 184 } 177 185 178 186 protected: … … 1613 1621 ":/cloud_machine_console_configure_external_terminal_16px.png", 1614 1622 ":/cloud_machine_console_configure_external_terminal_disabled_16px.png") 1615 {} 1623 { 1624 setProperty("UIToolType", QVariant::fromValue(UIToolType_CloudConsole)); 1625 } 1616 1626 1617 1627 protected: … … 4118 4128 pMenu->clear(); 4119 4129 4120 /* Populate Welcomemenu: */4130 /* Populate 'Welcome' menu: */ 4121 4131 pMenu->addAction(action(UIActionIndexMN_M_Welcome_S_New)); 4122 4132 pMenu->addAction(action(UIActionIndexMN_M_Welcome_S_Add)); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r87476 r87513 751 751 UIAction *pAction = qobject_cast<UIAction*>(sender()); 752 752 AssertPtrReturnVoid(pAction); 753 enmType = pAction->property(" toolType").value<UIToolType>();753 enmType = pAction->property("UIToolType").value<UIToolType>(); 754 754 } 755 755 } … … 2230 2230 /* Setup menu-bar policy: */ 2231 2231 menuBar()->setContextMenuPolicy(Qt::CustomContextMenu); 2232 2233 /* Assign actions with corresponding tool types: */2234 actionPool()->action(UIActionIndexMN_M_File_S_ShowExtensionPackManager)->setProperty("toolType", QVariant::fromValue(UIToolType_Extensions));2235 actionPool()->action(UIActionIndexMN_M_File_S_ShowVirtualMediumManager)->setProperty("toolType", QVariant::fromValue(UIToolType_Media));2236 actionPool()->action(UIActionIndexMN_M_File_S_ShowHostNetworkManager)->setProperty("toolType", QVariant::fromValue(UIToolType_Network));2237 actionPool()->action(UIActionIndexMN_M_File_S_ShowCloudProfileManager)->setProperty("toolType", QVariant::fromValue(UIToolType_Cloud));2238 actionPool()->action(UIActionIndexMN_M_Machine_M_Console_S_ConfigureApplications)->setProperty("toolType", QVariant::fromValue(UIToolType_CloudConsole));2239 actionPool()->action(UIActionIndexMN_M_Group_M_Console_S_ConfigureApplications)->setProperty("toolType", QVariant::fromValue(UIToolType_CloudConsole));2240 2232 } 2241 2233
Note:
See TracChangeset
for help on using the changeset viewer.