VirtualBox

Changeset 94034 in vbox


Ignore:
Timestamp:
Mar 1, 2022 11:37:42 AM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: qt6: The QCursor constructor with a mask now takes two QBitmap objects instead of QPixmap. This should be revisited as workaround isn't very efficient. bugref:9898

File:
1 edited

Legend:

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

    r94033 r94034  
    806806        updateMousePointerPixmapScaling(pixmapShape, uXHot, uYHot);
    807807        /// @todo updateMousePointerPixmapScaling(pixmapMask, uXHot, uYHot);
     808#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) /** @todo qt6: this is probably inefficient */
     809        m_cursor = QCursor(QBitmap(pixmapShape), QBitmap(pixmapMask), uXHot, uYHot);
     810#else
    808811        m_cursor = QCursor(pixmapShape, pixmapMask, uXHot, uYHot);
     812#endif
    809813    }
    810814
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