VirtualBox

Changeset 58852 in vbox


Ignore:
Timestamp:
Nov 25, 2015 1:12:33 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: Qt5 migration (part 5): Touch-screen events notation changes in QGraphicsView.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/graphics/QIGraphicsView.cpp

    r56217 r58852  
    5252            AssertPtrReturn(pTouchEvent, QGraphicsView::event(pEvent));
    5353            /* 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 */
    5457            if (pTouchEvent->deviceType() == QTouchEvent::TouchScreen)
     58#endif /* QT_VERSION < 0x050000 */
    5559            {
    5660                /* Remember where the scrolling was started: */
     
    6973            AssertPtrReturn(pTouchEvent, QGraphicsView::event(pEvent));
    7074            /* 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 */
    7178            if (pTouchEvent->deviceType() == QTouchEvent::TouchScreen)
     79#endif /* QT_VERSION < 0x050000 */
    7280            {
    7381                /* Determine vertical shift (inverted): */
     
    92100            AssertPtrReturn(pTouchEvent, QGraphicsView::event(pEvent));
    93101            /* 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 */
    94105            if (pTouchEvent->deviceType() == QTouchEvent::TouchScreen)
     106#endif /* QT_VERSION < 0x050000 */
    95107            {
    96108                /* Reset the scrolling start position: */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette