VirtualBox

Changeset 85633 in vbox for trunk


Ignore:
Timestamp:
Aug 6, 2020 10:35:19 AM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9609: A bit of cleanup for manager action-pool stuff: UIActionSimpleManagerCommonPerformDiscard doesn't need to inherit UIActionPolymorphicMenu, since state management present in base class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolManager.cpp

    r85613 r85633  
    11131113};
    11141114
    1115 /** Polymorphic menu action extension, used as 'Perform Discard' action class. */
    1116 class UIActionSimpleManagerCommonPerformDiscard : public UIActionPolymorphicMenu
     1115/** Simple menu action extension, used as 'Perform Discard' action class. */
     1116class UIActionSimpleManagerCommonPerformDiscard : public UIActionSimple
    11171117{
    11181118    Q_OBJECT;
     
    11221122    /** Constructs action passing @a pParent to the base-class. */
    11231123    UIActionSimpleManagerCommonPerformDiscard(UIActionPool *pParent)
    1124         : UIActionPolymorphicMenu(pParent,
    1125                                   ":/vm_discard_32px.png", ":/vm_discard_16px.png",
    1126                                   ":/vm_discard_disabled_32px.png", ":/vm_discard_disabled_16px.png")
    1127     {
    1128         /* Hide menu always: */
    1129         hideMenu();
    1130     }
     1124        : UIActionSimple(pParent,
     1125                         ":/vm_discard_32px.png", ":/vm_discard_16px.png",
     1126                         ":/vm_discard_disabled_32px.png", ":/vm_discard_disabled_16px.png")
     1127    {}
    11311128
    11321129protected:
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