VirtualBox

Changeset 94025 in vbox


Ignore:
Timestamp:
Mar 1, 2022 10:50:43 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
150258
Message:

FE/Qt: qt6: QTouchDevice::TouchScreen -> QInputDevice::DeviceType::TouchScreen (QInputDevice is new qt6, it seems). bugref:9898

File:
1 edited

Legend:

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

    r93115 r94025  
    4747            AssertPtrReturn(pTouchEvent, QGraphicsView::event(pEvent));
    4848            /* 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
    4952            if (pTouchEvent->device()->type() == QTouchDevice::TouchScreen)
     53#endif
    5054            {
    5155                /* Remember where the scrolling was started: */
     
    6468            AssertPtrReturn(pTouchEvent, QGraphicsView::event(pEvent));
    6569            /* 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
    6673            if (pTouchEvent->device()->type() == QTouchDevice::TouchScreen)
     74#endif
    6775            {
    6876                /* Determine vertical shift (inverted): */
     
    8795            AssertPtrReturn(pTouchEvent, QGraphicsView::event(pEvent));
    8896            /* 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
    89100            if (pTouchEvent->device()->type() == QTouchDevice::TouchScreen)
     101#endif
    90102            {
    91103                /* Reset the scrolling start position: */
Note: See TracChangeset for help on using the changeset viewer.

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