Changeset 75161 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Oct 29, 2018 5:57:17 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/cloud/UICloudProfileManager.cpp
r75054 r75161 607 607 void UICloudProfileManagerWidget::prepareActions() 608 608 { 609 /* First of all, add actions which has smaller shortcut scope: */ 610 addAction(m_pActionPool->action(UIActionIndexST_M_Cloud_S_Add)); 611 addAction(m_pActionPool->action(UIActionIndexST_M_Cloud_S_Import)); 612 addAction(m_pActionPool->action(UIActionIndexST_M_Cloud_S_Remove)); 613 addAction(m_pActionPool->action(UIActionIndexST_M_Cloud_T_Details)); 614 addAction(m_pActionPool->action(UIActionIndexST_M_Cloud_S_Help)); 615 609 616 /* Connect actions: */ 610 617 connect(m_pActionPool->action(UIActionIndexST_M_Cloud_S_Add), &QAction::triggered, -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.cpp
r75136 r75161 1223 1223 : UIActionToggle(pParent, 1224 1224 ":/log_viewer_find_32px.png", ":/log_viewer_find_disabled_32px.png") 1225 {} 1225 { 1226 setShortcutContext(Qt::WidgetWithChildrenShortcut); 1227 } 1226 1228 1227 1229 protected: … … 1260 1262 : UIActionToggle(pParent, 1261 1263 ":/log_viewer_filter_32px.png", ":/log_viewer_filter_disabled_32px.png") 1262 {} 1264 { 1265 setShortcutContext(Qt::WidgetWithChildrenShortcut); 1266 } 1263 1267 1264 1268 protected: … … 1297 1301 : UIActionToggle(pParent, 1298 1302 ":/log_viewer_bookmark_32px.png", ":/log_viewer_bookmark_disabled_32px.png") 1299 {} 1303 { 1304 setShortcutContext(Qt::WidgetWithChildrenShortcut); 1305 } 1300 1306 1301 1307 protected: … … 1334 1340 : UIActionToggle(pParent, 1335 1341 ":/log_viewer_settings_32px.png", ":/log_viewer_settings_disabled_32px.png") 1336 {} 1342 { 1343 setShortcutContext(Qt::WidgetWithChildrenShortcut); 1344 } 1337 1345 1338 1346 protected: … … 1371 1379 : UIActionSimple(pParent, 1372 1380 ":/log_viewer_refresh_32px.png", ":/log_viewer_refresh_disabled_32px.png") 1373 {} 1381 { 1382 setShortcutContext(Qt::WidgetWithChildrenShortcut); 1383 } 1374 1384 1375 1385 protected: … … 1408 1418 : UIActionSimple(pParent, 1409 1419 ":/log_viewer_save_32px.png", ":/log_viewer_save_disabled_32px.png") 1410 {} 1420 { 1421 setShortcutContext(Qt::WidgetWithChildrenShortcut); 1422 } 1411 1423 1412 1424 protected: -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolSelector.cpp
r75143 r75161 1594 1594 ":/snapshot_take_32px.png", ":/snapshot_take_16px.png", 1595 1595 ":/snapshot_take_disabled_32px.png", ":/snapshot_take_disabled_16px.png") 1596 {} 1596 { 1597 setShortcutContext(Qt::WidgetWithChildrenShortcut); 1598 } 1597 1599 1598 1600 protected: … … 1632 1634 ":/snapshot_delete_32px.png", ":/snapshot_delete_16px.png", 1633 1635 ":/snapshot_delete_disabled_32px.png", ":/snapshot_delete_disabled_16px.png") 1634 {} 1636 { 1637 setShortcutContext(Qt::WidgetWithChildrenShortcut); 1638 } 1635 1639 1636 1640 protected: … … 1670 1674 ":/snapshot_restore_32px.png", ":/snapshot_restore_16px.png", 1671 1675 ":/snapshot_restore_disabled_32px.png", ":/snapshot_restore_disabled_16px.png") 1672 {} 1676 { 1677 setShortcutContext(Qt::WidgetWithChildrenShortcut); 1678 } 1673 1679 1674 1680 protected: … … 1707 1713 : UIActionToggle(pParent) 1708 1714 { 1715 setShortcutContext(Qt::WidgetWithChildrenShortcut); 1709 1716 setIcon(UIIconPool::iconSetFull(":/snapshot_show_details_32px.png", ":/snapshot_show_details_16px.png", 1710 1717 ":/snapshot_show_details_disabled_32px.png", ":/snapshot_show_details_disabled_16px.png")); … … 1722 1729 virtual QKeySequence defaultShortcut(UIActionPoolType) const /* override */ 1723 1730 { 1724 return QKeySequence("Ctrl+S pace");1731 return QKeySequence("Ctrl+Shift+P"); 1725 1732 } 1726 1733 … … 1747 1754 ":/vm_clone_32px.png", ":/vm_clone_16px.png", 1748 1755 ":/vm_clone_disabled_32px.png", ":/vm_clone_disabled_16px.png") 1749 {} 1756 { 1757 setShortcutContext(Qt::WidgetWithChildrenShortcut); 1758 } 1750 1759 1751 1760 protected: … … 1813 1822 : UIActionSimple(pParent) 1814 1823 { 1824 setShortcutContext(Qt::WidgetWithChildrenShortcut); 1815 1825 setIcon(0, UIIconPool::iconSetFull(":/hd_add_32px.png", ":/hd_add_16px.png", 1816 1826 ":/hd_add_disabled_32px.png", ":/hd_add_disabled_16px.png")); … … 1856 1866 : UIActionSimple(pParent) 1857 1867 { 1868 setShortcutContext(Qt::WidgetWithChildrenShortcut); 1858 1869 setIcon(0, UIIconPool::iconSetFull(":/hd_copy_32px.png", ":/hd_copy_16px.png", 1859 1870 ":/hd_copy_disabled_32px.png", ":/hd_copy_disabled_16px.png")); … … 1899 1910 : UIActionSimple(pParent) 1900 1911 { 1912 setShortcutContext(Qt::WidgetWithChildrenShortcut); 1901 1913 setIcon(0, UIIconPool::iconSetFull(":/hd_move_32px.png", ":/hd_move_16px.png", 1902 1914 ":/hd_move_disabled_32px.png", ":/hd_move_disabled_16px.png")); … … 1942 1954 : UIActionSimple(pParent) 1943 1955 { 1956 setShortcutContext(Qt::WidgetWithChildrenShortcut); 1944 1957 setIcon(0, UIIconPool::iconSetFull(":/hd_remove_32px.png", ":/hd_remove_16px.png", 1945 1958 ":/hd_remove_disabled_32px.png", ":/hd_remove_disabled_16px.png")); … … 1985 1998 : UIActionSimple(pParent) 1986 1999 { 2000 setShortcutContext(Qt::WidgetWithChildrenShortcut); 1987 2001 setIcon(0, UIIconPool::iconSetFull(":/hd_release_32px.png", ":/hd_release_16px.png", 1988 2002 ":/hd_release_disabled_32px.png", ":/hd_release_disabled_16px.png")); … … 2028 2042 : UIActionToggle(pParent) 2029 2043 { 2044 setShortcutContext(Qt::WidgetWithChildrenShortcut); 2030 2045 setIcon(0, UIIconPool::iconSetFull(":/hd_modify_32px.png", ":/hd_modify_16px.png", 2031 2046 ":/hd_modify_disabled_32px.png", ":/hd_modify_disabled_16px.png")); … … 2047 2062 virtual QKeySequence defaultShortcut(UIActionPoolType) const /* override */ 2048 2063 { 2049 return QKeySequence("Ctrl+S pace");2064 return QKeySequence("Ctrl+Shift+P"); 2050 2065 } 2051 2066 … … 2072 2087 ":/refresh_32px.png", ":/refresh_16px.png", 2073 2088 ":/refresh_disabled_32px.png", ":/refresh_disabled_16px.png") 2074 {} 2089 { 2090 setShortcutContext(Qt::WidgetWithChildrenShortcut); 2091 } 2075 2092 2076 2093 protected: … … 2139 2156 ":/host_iface_add_32px.png", ":/host_iface_add_16px.png", 2140 2157 ":/host_iface_add_disabled_32px.png", ":/host_iface_add_disabled_16px.png") 2141 {} 2158 { 2159 setShortcutContext(Qt::WidgetWithChildrenShortcut); 2160 } 2142 2161 2143 2162 protected: … … 2177 2196 ":/host_iface_remove_32px.png", ":/host_iface_remove_16px.png", 2178 2197 ":/host_iface_remove_disabled_32px.png", ":/host_iface_remove_disabled_16px.png") 2179 {} 2198 { 2199 setShortcutContext(Qt::WidgetWithChildrenShortcut); 2200 } 2180 2201 2181 2202 protected: … … 2214 2235 : UIActionToggle(pParent) 2215 2236 { 2237 setShortcutContext(Qt::WidgetWithChildrenShortcut); 2216 2238 setIcon(UIIconPool::iconSetFull(":/host_iface_edit_32px.png", ":/host_iface_edit_16px.png", 2217 2239 ":/host_iface_edit_disabled_32px.png", ":/host_iface_edit_disabled_16px.png")); … … 2229 2251 virtual QKeySequence defaultShortcut(UIActionPoolType) const /* override */ 2230 2252 { 2231 return QKeySequence("Ctrl+S pace");2253 return QKeySequence("Ctrl+Shift+P"); 2232 2254 } 2233 2255 … … 2254 2276 ":/refresh_32px.png", ":/refresh_16px.png", 2255 2277 ":/refresh_disabled_32px.png", ":/refresh_disabled_16px.png") 2256 {} 2278 { 2279 setShortcutContext(Qt::WidgetWithChildrenShortcut); 2280 } 2257 2281 2258 2282 protected: … … 2321 2345 ":/cloud_profile_add_32px.png", ":/cloud_profile_add_16px.png", 2322 2346 ":/cloud_profile_add_disabled_32px.png", ":/cloud_profile_add_disabled_16px.png") 2323 {} 2347 { 2348 setShortcutContext(Qt::WidgetWithChildrenShortcut); 2349 } 2324 2350 2325 2351 protected: … … 2360 2386 ":/cloud_profile_restore_32px.png", ":/cloud_profile_restore_16px.png", 2361 2387 ":/cloud_profile_restore_disabled_32px.png", ":/cloud_profile_restore_disabled_16px.png") 2362 {} 2388 { 2389 setShortcutContext(Qt::WidgetWithChildrenShortcut); 2390 } 2363 2391 2364 2392 protected: … … 2399 2427 ":/cloud_profile_remove_32px.png", ":/cloud_profile_remove_16px.png", 2400 2428 ":/cloud_profile_remove_disabled_32px.png", ":/cloud_profile_remove_disabled_16px.png") 2401 {} 2429 { 2430 setShortcutContext(Qt::WidgetWithChildrenShortcut); 2431 } 2402 2432 2403 2433 protected: … … 2437 2467 : UIActionToggle(pParent) 2438 2468 { 2469 setShortcutContext(Qt::WidgetWithChildrenShortcut); 2439 2470 setIcon(UIIconPool::iconSetFull(":/cloud_profile_edit_32px.png", ":/cloud_profile_edit_16px.png", 2440 2471 ":/cloud_profile_edit_disabled_32px.png", ":/cloud_profile_edit_disabled_16px.png")); … … 2452 2483 virtual QKeySequence defaultShortcut(UIActionPoolType) const /* override */ 2453 2484 { 2454 return QKeySequence("Ctrl+S pace");2485 return QKeySequence("Ctrl+Shift+P"); 2455 2486 } 2456 2487 … … 2478 2509 ":/cloud_profile_help_32px.png", ":/cloud_profile_help_16px.png", 2479 2510 ":/cloud_profile_help_disabled_32px.png", ":/cloud_profile_help_disabled_16px.png") 2480 {} 2511 { 2512 setShortcutContext(Qt::WidgetWithChildrenShortcut); 2513 } 2481 2514 2482 2515 protected: -
trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork/UIHostNetworkManager.cpp
r75027 r75161 693 693 void UIHostNetworkManagerWidget::prepareActions() 694 694 { 695 /* First of all, add actions which has smaller shortcut scope: */ 696 addAction(m_pActionPool->action(UIActionIndexST_M_Network_S_Create)); 697 addAction(m_pActionPool->action(UIActionIndexST_M_Network_S_Remove)); 698 addAction(m_pActionPool->action(UIActionIndexST_M_Network_T_Details)); 699 addAction(m_pActionPool->action(UIActionIndexST_M_Network_S_Refresh)); 700 695 701 /* Connect actions: */ 696 702 connect(m_pActionPool->action(UIActionIndexST_M_Network_S_Create), &QAction::triggered, -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp
r75027 r75161 436 436 void UIVMLogViewerWidget::prepareActions() 437 437 { 438 /* First of all, add actions which has smaller shortcut scope: */ 439 addAction(m_pActionPool->action(UIActionIndex_M_Log_T_Find)); 440 addAction(m_pActionPool->action(UIActionIndex_M_Log_T_Filter)); 441 addAction(m_pActionPool->action(UIActionIndex_M_Log_T_Bookmark)); 442 addAction(m_pActionPool->action(UIActionIndex_M_Log_T_Settings)); 443 addAction(m_pActionPool->action(UIActionIndex_M_Log_S_Refresh)); 444 addAction(m_pActionPool->action(UIActionIndex_M_Log_S_Save)); 445 438 446 /* Connect actions: */ 439 447 connect(m_pActionPool->action(UIActionIndex_M_Log_T_Find), &QAction::toggled, -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.cpp
r75027 r75161 720 720 void UIMediumManagerWidget::prepareActions() 721 721 { 722 /* First of all, add actions which has smaller shortcut scope: */ 723 addAction(m_pActionPool->action(UIActionIndexST_M_Medium_S_Add)); 724 addAction(m_pActionPool->action(UIActionIndexST_M_Medium_S_Copy)); 725 addAction(m_pActionPool->action(UIActionIndexST_M_Medium_S_Move)); 726 addAction(m_pActionPool->action(UIActionIndexST_M_Medium_S_Remove)); 727 addAction(m_pActionPool->action(UIActionIndexST_M_Medium_S_Release)); 728 addAction(m_pActionPool->action(UIActionIndexST_M_Medium_T_Details)); 729 addAction(m_pActionPool->action(UIActionIndexST_M_Medium_S_Refresh)); 730 722 731 /* Connect actions: */ 723 732 connect(m_pActionPool->action(UIActionIndexST_M_Medium_S_Add), &QAction::triggered, -
trunk/src/VBox/Frontends/VirtualBox/src/snapshots/UISnapshotPane.cpp
r75093 r75161 1224 1224 void UISnapshotPane::prepareActions() 1225 1225 { 1226 /* First of all, add actions which has smaller shortcut scope: */ 1227 addAction(m_pActionPool->action(UIActionIndexST_M_Snapshot_S_Take)); 1228 addAction(m_pActionPool->action(UIActionIndexST_M_Snapshot_S_Delete)); 1229 addAction(m_pActionPool->action(UIActionIndexST_M_Snapshot_S_Restore)); 1230 addAction(m_pActionPool->action(UIActionIndexST_M_Snapshot_T_Properties)); 1231 addAction(m_pActionPool->action(UIActionIndexST_M_Snapshot_S_Clone)); 1232 1226 1233 /* Connect actions: */ 1227 1234 connect(m_pActionPool->action(UIActionIndexST_M_Snapshot_S_Take), &UIAction::triggered,
Note:
See TracChangeset
for help on using the changeset viewer.