Changeset 59743 in vbox
- Timestamp:
- Feb 19, 2016 3:29:32 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 105612
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
r59659 r59743 105 105 /** QAbstractNativeEventFilter extension 106 106 * allowing to pre-process native platform events. */ 107 class PrivateEventFilter : public QAbstractNativeEventFilter107 class KeyboardHandlerEventFilter : public QAbstractNativeEventFilter 108 108 { 109 109 public: 110 110 111 111 /** Constructor which takes the passed @a pParent to redirect events to. */ 112 PrivateEventFilter(UIKeyboardHandler *pParent)112 KeyboardHandlerEventFilter(UIKeyboardHandler *pParent) 113 113 : m_pParent(pParent) 114 114 {} … … 1653 1653 } 1654 1654 /* Install new private event-filter: */ 1655 m_pPrivateEventFilter = new PrivateEventFilter(this);1655 m_pPrivateEventFilter = new KeyboardHandlerEventFilter(this); 1656 1656 qApp->installNativeEventFilter(m_pPrivateEventFilter); 1657 1657 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.h
r59658 r59743 53 53 #endif /* Q_WS_X11 */ 54 54 #if QT_VERSION >= 0x050000 55 class PrivateEventFilter;55 class KeyboardHandlerEventFilter; 56 56 #endif /* QT_VERSION >= 0x050000 */ 57 57 … … 238 238 #if QT_VERSION >= 0x050000 239 239 /** Win: Holds the native event filter instance. */ 240 PrivateEventFilter *m_pPrivateEventFilter;240 KeyboardHandlerEventFilter *m_pPrivateEventFilter; 241 241 /** Win: Allows the native event filter to 242 242 * redirect events directly to nativeEvent handler. */ 243 friend class PrivateEventFilter;243 friend class KeyboardHandlerEventFilter; 244 244 #endif /* QT_VERSION >= 0x050000 */ 245 245 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIHostComboEditor.cpp
r59414 r59743 93 93 * not the sub-widget we expect, so that's probably the reason Qt devs 94 94 * haven't fixed that bug so far for Windows and Mac OS X hosts. */ 95 class PrivateEventFilter : public QAbstractNativeEventFilter95 class ComboEditorEventFilter : public QAbstractNativeEventFilter 96 96 { 97 97 public: 98 98 99 99 /** Constructor which takes the passed @a pParent to redirect events to. */ 100 PrivateEventFilter(UIHostComboEditorPrivate *pParent)100 ComboEditorEventFilter(UIHostComboEditorPrivate *pParent) 101 101 : m_pParent(pParent) 102 102 {} … … 493 493 # if QT_VERSION >= 0x050000 494 494 /* Prepare private event filter: */ 495 m_pPrivateEventFilter = new PrivateEventFilter(this);495 m_pPrivateEventFilter = new ComboEditorEventFilter(this); 496 496 qApp->installNativeEventFilter(m_pPrivateEventFilter); 497 497 # endif /* QT_VERSION >= 0x050000 */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIHostComboEditor.h
r59309 r59743 33 33 #if defined(Q_WS_MAC) || defined(Q_WS_WIN) 34 34 # if QT_VERSION >= 0x050000 35 class PrivateEventFilter;35 class ComboEditorEventFilter; 36 36 # endif /* QT_VERSION >= 0x050000 */ 37 37 #endif /* Q_WS_MAC || Q_WS_WIN */ … … 190 190 # if QT_VERSION >= 0x050000 191 191 /** Mac, Win: Holds the native event filter instance. */ 192 PrivateEventFilter *m_pPrivateEventFilter;192 ComboEditorEventFilter *m_pPrivateEventFilter; 193 193 /** Mac, Win: Allows the native event filter to 194 194 * redirect events directly to nativeEvent handler. */ 195 friend class PrivateEventFilter;195 friend class ComboEditorEventFilter; 196 196 # endif /* QT_VERSION >= 0x050000 */ 197 197 #endif /* Q_WS_MAC || Q_WS_WIN */
Note:
See TracChangeset
for help on using the changeset viewer.