Changeset 58852 in vbox
- Timestamp:
- Nov 25, 2015 1:12:33 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/graphics/QIGraphicsView.cpp
r56217 r58852 52 52 AssertPtrReturn(pTouchEvent, QGraphicsView::event(pEvent)); 53 53 /* For touch-screen event we have something special: */ 54 #if QT_VERSION >= 0x050000 55 if (pTouchEvent->device()->type() == QTouchDevice::TouchScreen) 56 #else /* QT_VERSION < 0x050000 */ 54 57 if (pTouchEvent->deviceType() == QTouchEvent::TouchScreen) 58 #endif /* QT_VERSION < 0x050000 */ 55 59 { 56 60 /* Remember where the scrolling was started: */ … … 69 73 AssertPtrReturn(pTouchEvent, QGraphicsView::event(pEvent)); 70 74 /* For touch-screen event we have something special: */ 75 #if QT_VERSION >= 0x050000 76 if (pTouchEvent->device()->type() == QTouchDevice::TouchScreen) 77 #else /* QT_VERSION < 0x050000 */ 71 78 if (pTouchEvent->deviceType() == QTouchEvent::TouchScreen) 79 #endif /* QT_VERSION < 0x050000 */ 72 80 { 73 81 /* Determine vertical shift (inverted): */ … … 92 100 AssertPtrReturn(pTouchEvent, QGraphicsView::event(pEvent)); 93 101 /* For touch-screen event we have something special: */ 102 #if QT_VERSION >= 0x050000 103 if (pTouchEvent->device()->type() == QTouchDevice::TouchScreen) 104 #else /* QT_VERSION < 0x050000 */ 94 105 if (pTouchEvent->deviceType() == QTouchEvent::TouchScreen) 106 #endif /* QT_VERSION < 0x050000 */ 95 107 { 96 108 /* Reset the scrolling start position: */
Note:
See TracChangeset
for help on using the changeset viewer.