Changeset 54989 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 27, 2015 1:45:22 PM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIShortcutPool.cpp
r52730 r54989 274 274 275 275 /* Get shortcut ID/sequence: */ 276 constQString strShortcutExtraDataID = strKeyValuePair.left(iDelimiterPosition);276 QString strShortcutExtraDataID = strKeyValuePair.left(iDelimiterPosition); 277 277 const QString strShortcutSequence = strKeyValuePair.right(strKeyValuePair.length() - iDelimiterPosition - 1); 278 279 // Hack for handling "Save" as "SaveState": 280 if (strShortcutExtraDataID == "Save") 281 strShortcutExtraDataID = "SaveState"; 278 282 279 283 /* Compose corresponding shortcut key: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.cpp
r54509 r54989 243 243 }; 244 244 245 class UIActionSimplePerformSave : public UIActionSimple246 { 247 Q_OBJECT; 248 249 public: 250 251 UIActionSimplePerformSave (UIActionPool *pParent)245 class UIActionSimplePerformSaveState : public UIActionSimple 246 { 247 Q_OBJECT; 248 249 public: 250 251 UIActionSimplePerformSaveState(UIActionPool *pParent) 252 252 : UIActionSimple(pParent, ":/vm_save_state_16px.png", ":/vm_save_state_disabled_16px.png") {} 253 253 … … 263 263 QString shortcutExtraDataID() const 264 264 { 265 return QString("Save ");265 return QString("SaveState"); 266 266 } 267 267 … … 2061 2061 m_pool[UIActionIndexRT_M_Machine_T_Pause] = new UIActionTogglePause(this); 2062 2062 m_pool[UIActionIndexRT_M_Machine_S_Reset] = new UIActionSimplePerformReset(this); 2063 m_pool[UIActionIndexRT_M_Machine_S_Save] = new UIActionSimplePerformSave (this);2063 m_pool[UIActionIndexRT_M_Machine_S_Save] = new UIActionSimplePerformSaveState(this); 2064 2064 m_pool[UIActionIndexRT_M_Machine_S_Shutdown] = new UIActionSimplePerformShutdown(this); 2065 2065 m_pool[UIActionIndexRT_M_Machine_S_PowerOff] = new UIActionSimplePerformPowerOff(this);
Note:
See TracChangeset
for help on using the changeset viewer.