VirtualBox

Ignore:
Timestamp:
Jan 19, 2016 3:08:30 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: Qt5 migration (part 66): QCursor API changes for Windows.

File:
1 edited

Legend:

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

    r59200 r59412  
    7171
    7272#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
     73
     74/* Qt includes: */
     75#ifdef Q_WS_WIN
     76# if QT_VERSION >= 0x050000
     77#  include <QtWin>
     78# endif /* QT_VERSION >= 0x050000 */
     79#endif /* Q_WS_WIN */
    7380
    7481#ifdef Q_WS_X11
     
    16821689        {
    16831690            /* Set the new cursor: */
     1691# if QT_VERSION < 0x050000
    16841692            m_cursor = QCursor(hAlphaCursor);
     1693# else /* QT_VERSION >= 0x050000 */
     1694            m_cursor = QCursor(QtWin::fromHBITMAP(hBitmap, QtWin::HBitmapAlpha), uXHot, uYHot);
     1695# endif /* QT_VERSION >= 0x050000 */
    16851696            if (m_alphaCursor)
    16861697                DestroyIcon(m_alphaCursor);
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