Changeset 59413 in vbox
- Timestamp:
- Jan 20, 2016 10:19:03 AM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
r59403 r59413 1651 1651 return m_views[m_iKeyboardHookViewIndex]->winEvent(&message, &dummyResult); 1652 1652 #else /* QT_VERSION >= 0x050000 */ 1653 return m_views[m_iKeyboardHookViewIndex]->nativeEvent(&message); 1653 QByteArray eventType("windows_generic_MSG"); 1654 return m_views[m_iKeyboardHookViewIndex]->nativeEvent(eventType, &message); 1654 1655 #endif /* QT_VERSION >= 0x050000 */ 1655 1656 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r59403 r59413 147 147 { 148 148 /* Redirect event to parent: */ 149 Q_UNUSED( eventType); Q_UNUSED(pResult);150 return m_pParent->nativeEvent( pMessage);149 Q_UNUSED(pResult); 150 return m_pParent->nativeEvent(eventType, pMessage); 151 151 } 152 152 … … 1885 1885 #else /* QT_VERSION >= 0x050000 */ 1886 1886 1887 bool UIMachineView::nativeEvent( void *pMessage)1887 bool UIMachineView::nativeEvent(const QByteArray &eventType, void *pMessage) 1888 1888 { 1889 1889 # if defined(Q_WS_MAC) … … 1893 1893 # elif defined(Q_WS_WIN) 1894 1894 1895 /* Cast to generic MSG event: */ 1895 /* Make sure it's generic MSG event: */ 1896 if (eventType != "windows_generic_MSG") 1897 return false; 1896 1898 MSG *pEvent = static_cast<MSG*>(pMessage); 1897 1899 … … 1918 1920 /* Make sure it's generic XCB event: */ 1919 1921 if (eventType != "xcb_generic_event_t") 1920 return QAbstractScrollArea::nativeEvent(eventType, pMessage, pResult);1922 return false; 1921 1923 xcb_generic_event_t *pEvent = static_cast<xcb_generic_event_t*>(pMessage); 1922 1924 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h
r59403 r59413 375 375 * the Qt itself because it has another signature, 376 376 * only by the keyboard-hook of the keyboard-handler. */ 377 virtual bool nativeEvent( void *pMessage);377 virtual bool nativeEvent(const QByteArray &eventType, void *pMessage); 378 378 #endif /* QT_VERSION >= 0x050000 */ 379 379
Note:
See TracChangeset
for help on using the changeset viewer.