VirtualBox

Ignore:
Timestamp:
Sep 25, 2015 12:54:20 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: Mac OS X: Window menu Manager cleanup/rework (step 3): Reordering.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UIWindowMenuManager.cpp

    r57891 r57892  
    207207}
    208208
     209UIWindowMenuManager::UIWindowMenuManager()
     210{
     211    /* Assign instance: */
     212    m_spInstance = this;
     213
     214    /* Install global event-filter: */
     215    qApp->installEventFilter(this);
     216}
     217
     218UIWindowMenuManager::~UIWindowMenuManager()
     219{
     220    /* Cleanup all helpers: */
     221    qDeleteAll(m_helpers);
     222
     223    /* Unassign instance: */
     224    m_spInstance = 0;
     225}
     226
    209227QMenu *UIWindowMenuManager::createMenu(QWidget *pWindow)
    210228{
     
    315333}
    316334
    317 UIWindowMenuManager::UIWindowMenuManager()
    318 {
    319     /* Assign instance: */
    320     m_spInstance = this;
    321 
    322     /* Install global event-filter: */
    323     qApp->installEventFilter(this);
    324 }
    325 
    326 UIWindowMenuManager::~UIWindowMenuManager()
    327 {
    328     /* Cleanup all helpers: */
    329     qDeleteAll(m_helpers);
    330 
    331     /* Unassign instance: */
    332     m_spInstance = 0;
    333 }
    334 
    335335#include "UIWindowMenuManager.moc"
    336336
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UIWindowMenuManager.h

    r57891 r57892  
    3939
    4040    /** Static constructor and instance provider. */
    41     static UIWindowMenuManager *instance();
     41    static UIWindowMenuManager* instance();
    4242    /** Static destructor. */
    4343    static void destroy();
     
    5858protected:
    5959
    60     /** Preprocesses any Qt @a pEvent for passed @a pObject. */
    61     bool eventFilter(QObject *pObject, QEvent *pEvent);
    62 
    63 private:
    64 
    6560    /** Constructs 'Window' menu Manager. */
    6661    UIWindowMenuManager();
    6762    /** Destructs 'Window' menu Manager. */
    6863    ~UIWindowMenuManager();
     64
     65    /** Preprocesses any Qt @a pEvent for passed @a pObject. */
     66    virtual bool eventFilter(QObject *pObject, QEvent *pEvent);
     67
     68private:
    6969
    7070    /** Holds the static instance. */
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