VirtualBox

Ignore:
Timestamp:
May 20, 2010 1:39:29 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt: 4758: New running VM core: cleanup.

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  
    1818 */
    1919
     20/* Global includes */
     21#include <QtGlobal>
     22
    2023/* Local includes */
    2124#include "UIActionsPool.h"
    2225#include "VBoxGlobal.h"
    23 
    24 /* Global includes */
    25 #include <QtGlobal>
    2626
    2727/* Action activation event */
     
    5151}
    5252
    53 class UISeparatorAction : public UIAction
    54 {
    55     Q_OBJECT;
    56 
    57 public:
    58 
    59     UISeparatorAction(QObject *pParent)
    60         : UIAction(pParent, UIActionType_Separator)
    61     {
    62         setSeparator(true);
    63     }
    64 };
    65 
    6653class UISimpleAction : public UIAction
    6754{
     
    133120            setIcon(VBoxGlobal::iconSet(strIcon, strIconDis));
    134121        setMenu(new QMenu);
    135     }
    136 };
    137 
    138 class SeparatorAction : public UISeparatorAction
    139 {
    140     Q_OBJECT;
    141 
    142 public:
    143 
    144     SeparatorAction(QObject *pParent)
    145         : UISeparatorAction(pParent)
    146     {
    147     }
    148 
    149 protected:
    150 
    151     void retranslateUi()
    152     {
    153122    }
    154123};
     
    10691038    , m_actionsPool(UIActionIndex_End, 0)
    10701039{
    1071     /* Common actions: */
    1072     m_actionsPool[UIActionIndex_Separator] = new SeparatorAction(this);
    1073 
    10741040    /* "Machine" menu actions: */
    10751041    m_actionsPool[UIActionIndex_Toggle_Fullscreen] = new ToggleFullscreenModeAction(this);
     
    12011167        UIAction *pAction = m_actionsPool.at(i);
    12021168        /* Skip menus/separators */
    1203         if (pAction->type() == UIActionType_Menu || pAction->type() == UIActionType_Separator)
     1169        if (pAction->type() == UIActionType_Menu)
    12041170            continue;
    12051171        QString hotkey = VBoxGlobal::extractKeyFromActionText(pAction->text());
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionsPool.h

    r28800 r29697  
    2828enum UIActionType
    2929{
    30     UIActionType_Separator,
    3130    UIActionType_Simple,
    3231    UIActionType_Toggle,
     
    5150enum UIActionIndex
    5251{
    53     /* Common actions */
    54     UIActionIndex_Separator,
    55 
    5652    /* "Machine" menu actions: */
    5753    UIActionIndex_Menu_Machine,
Note: See TracChangeset for help on using the changeset viewer.

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