Changeset 57892 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Sep 25, 2015 12:54:20 PM (9 years ago)
- 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 207 207 } 208 208 209 UIWindowMenuManager::UIWindowMenuManager() 210 { 211 /* Assign instance: */ 212 m_spInstance = this; 213 214 /* Install global event-filter: */ 215 qApp->installEventFilter(this); 216 } 217 218 UIWindowMenuManager::~UIWindowMenuManager() 219 { 220 /* Cleanup all helpers: */ 221 qDeleteAll(m_helpers); 222 223 /* Unassign instance: */ 224 m_spInstance = 0; 225 } 226 209 227 QMenu *UIWindowMenuManager::createMenu(QWidget *pWindow) 210 228 { … … 315 333 } 316 334 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 335 335 #include "UIWindowMenuManager.moc" 336 336 -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UIWindowMenuManager.h
r57891 r57892 39 39 40 40 /** Static constructor and instance provider. */ 41 static UIWindowMenuManager *instance();41 static UIWindowMenuManager* instance(); 42 42 /** Static destructor. */ 43 43 static void destroy(); … … 58 58 protected: 59 59 60 /** Preprocesses any Qt @a pEvent for passed @a pObject. */61 bool eventFilter(QObject *pObject, QEvent *pEvent);62 63 private:64 65 60 /** Constructs 'Window' menu Manager. */ 66 61 UIWindowMenuManager(); 67 62 /** Destructs 'Window' menu Manager. */ 68 63 ~UIWindowMenuManager(); 64 65 /** Preprocesses any Qt @a pEvent for passed @a pObject. */ 66 virtual bool eventFilter(QObject *pObject, QEvent *pEvent); 67 68 private: 69 69 70 70 /** Holds the static instance. */
Note:
See TracChangeset
for help on using the changeset viewer.