VirtualBox

Changeset 100034 in vbox


Ignore:
Timestamp:
Jun 1, 2023 11:20:25 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157712
Message:

FE/Qt: bugref:10450: Runtime UI: More remaining bits fixing Qt6 compatibility for UIMouseHandler, s.a. r157476.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp

    r99839 r100034  
    12131213    /* Pass all multi-touch events into guest: */
    12141214    int iTouchPointIndex = 0;
     1215#ifdef VBOX_IS_QT6_OR_LATER /* QTouchEvent::TouchPoint was replaced by QEventPoint in 6.0 */
     1216    foreach (const QEventPoint &touchPoint, pTouchEvent->points())
     1217#else
    12151218    foreach (const QTouchEvent::TouchPoint &touchPoint, pTouchEvent->touchPoints())
     1219#endif
    12161220    {
    12171221        /* Get touch-point state: */
     
    12191223        switch (touchPoint.state())
    12201224        {
     1225#ifdef VBOX_IS_QT6_OR_LATER /* QTouchEvent::TouchPoint was replaced by QEventPoint in 6.0 */
     1226            case QEventPoint::Pressed:
     1227            case QEventPoint::Updated:
     1228            case QEventPoint::Stationary:
     1229#else
    12211230            case Qt::TouchPointPressed:
    12221231            case Qt::TouchPointMoved:
    12231232            case Qt::TouchPointStationary:
     1233#endif
    12241234                iTouchPointState = KTouchContactState_InContact;
    12251235                if (fTouchScreen)
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