Changeset 29697 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- May 20, 2010 1:39:29 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionsPool.cpp
r29695 r29697 18 18 */ 19 19 20 /* Global includes */ 21 #include <QtGlobal> 22 20 23 /* Local includes */ 21 24 #include "UIActionsPool.h" 22 25 #include "VBoxGlobal.h" 23 24 /* Global includes */25 #include <QtGlobal>26 26 27 27 /* Action activation event */ … … 51 51 } 52 52 53 class UISeparatorAction : public UIAction54 {55 Q_OBJECT;56 57 public:58 59 UISeparatorAction(QObject *pParent)60 : UIAction(pParent, UIActionType_Separator)61 {62 setSeparator(true);63 }64 };65 66 53 class UISimpleAction : public UIAction 67 54 { … … 133 120 setIcon(VBoxGlobal::iconSet(strIcon, strIconDis)); 134 121 setMenu(new QMenu); 135 }136 };137 138 class SeparatorAction : public UISeparatorAction139 {140 Q_OBJECT;141 142 public:143 144 SeparatorAction(QObject *pParent)145 : UISeparatorAction(pParent)146 {147 }148 149 protected:150 151 void retranslateUi()152 {153 122 } 154 123 }; … … 1069 1038 , m_actionsPool(UIActionIndex_End, 0) 1070 1039 { 1071 /* Common actions: */1072 m_actionsPool[UIActionIndex_Separator] = new SeparatorAction(this);1073 1074 1040 /* "Machine" menu actions: */ 1075 1041 m_actionsPool[UIActionIndex_Toggle_Fullscreen] = new ToggleFullscreenModeAction(this); … … 1201 1167 UIAction *pAction = m_actionsPool.at(i); 1202 1168 /* Skip menus/separators */ 1203 if (pAction->type() == UIActionType_Menu || pAction->type() == UIActionType_Separator)1169 if (pAction->type() == UIActionType_Menu) 1204 1170 continue; 1205 1171 QString hotkey = VBoxGlobal::extractKeyFromActionText(pAction->text()); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionsPool.h
r28800 r29697 28 28 enum UIActionType 29 29 { 30 UIActionType_Separator,31 30 UIActionType_Simple, 32 31 UIActionType_Toggle, … … 51 50 enum UIActionIndex 52 51 { 53 /* Common actions */54 UIActionIndex_Separator,55 56 52 /* "Machine" menu actions: */ 57 53 UIActionIndex_Menu_Machine,
Note:
See TracChangeset
for help on using the changeset viewer.