Changeset 94025 in vbox
- Timestamp:
- Mar 1, 2022 10:50:43 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 150258
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/graphics/QIGraphicsView.cpp
r93115 r94025 47 47 AssertPtrReturn(pTouchEvent, QGraphicsView::event(pEvent)); 48 48 /* For touch-screen event we have something special: */ 49 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) 50 if (pTouchEvent->device()->type() == QInputDevice::DeviceType::TouchScreen) 51 #else 49 52 if (pTouchEvent->device()->type() == QTouchDevice::TouchScreen) 53 #endif 50 54 { 51 55 /* Remember where the scrolling was started: */ … … 64 68 AssertPtrReturn(pTouchEvent, QGraphicsView::event(pEvent)); 65 69 /* For touch-screen event we have something special: */ 70 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) 71 if (pTouchEvent->device()->type() == QInputDevice::DeviceType::TouchScreen) 72 #else 66 73 if (pTouchEvent->device()->type() == QTouchDevice::TouchScreen) 74 #endif 67 75 { 68 76 /* Determine vertical shift (inverted): */ … … 87 95 AssertPtrReturn(pTouchEvent, QGraphicsView::event(pEvent)); 88 96 /* For touch-screen event we have something special: */ 97 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) 98 if (pTouchEvent->device()->type() == QInputDevice::DeviceType::TouchScreen) 99 #else 89 100 if (pTouchEvent->device()->type() == QTouchDevice::TouchScreen) 101 #endif 90 102 { 91 103 /* Reset the scrolling start position: */
Note:
See TracChangeset
for help on using the changeset viewer.