VirtualBox

Changeset 26819 in vbox


Ignore:
Timestamp:
Feb 26, 2010 9:35:45 AM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: new core: fixes for r58086

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
2 edited

Legend:

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

    r26816 r26819  
    24722472#elif defined(Q_WS_WIN32)
    24732473
    2474     if (uisession()->numLockAdaptionCnt() && (m_fNumLock ^ !!(GetKeyState(VK_NUMLOCK))))
     2474    if (uisession()->numLockAdaptionCnt() && (uisession()->isNumLock() ^ !!(GetKeyState(VK_NUMLOCK))))
    24752475    {
    24762476        uisession()->setNumLockAdaptionCnt(uisession()->numLockAdaptionCnt() - 1);
     
    24782478        piCodes[(*puCount)++] = 0x45 | 0x80;
    24792479    }
    2480     if (uisession()->capsLockAdaptionCnt() && (m_fCapsLock ^ !!(GetKeyState(VK_CAPITAL))))
     2480    if (uisession()->capsLockAdaptionCnt() && (uisession()->isCapsLock() ^ !!(GetKeyState(VK_CAPITAL))))
    24812481    {
    24822482        uisession()->setCapsLockAdaptionCnt(uisession()->capsLockAdaptionCnt() - 1);
     
    24862486         * capslock.  For simplicity, only do this if shift is not
    24872487         * already held down. */
    2488         if (m_fCapsLock && !(m_pressedKeys[0x2a] & IsKeyPressed))
     2488        if (uisession()->isCapsLock() && !(m_pressedKeys[0x2a] & IsKeyPressed))
    24892489        {
    24902490            piCodes[(*puCount)++] = 0x2a;
     
    24962496
    24972497    /* if (uisession()->numLockAdaptionCnt()) ... - NumLock isn't implemented by Mac OS X so ignore it. */
    2498     if (uisession()->capsLockAdaptionCnt() && (m_fCapsLock ^ !!(::GetCurrentEventKeyModifiers() & alphaLock)))
     2498    if (uisession()->capsLockAdaptionCnt() && (uisession()->isCapsLock() ^ !!(::GetCurrentEventKeyModifiers() & alphaLock)))
    24992499    {
    25002500        uisession()->setCapsLockAdaptionCnt(uisession()->capsLockAdaptionCnt() - 1);
     
    25042504         * capslock.  For simplicity, only do this if shift is not
    25052505         * already held down. */
    2506         if (m_fCapsLock && !(m_pressedKeys[0x2a] & IsKeyPressed))
     2506        if (uisession()->isCapsLock() && !(m_pressedKeys[0x2a] & IsKeyPressed))
    25072507        {
    25082508            piCodes[(*puCount)++] = 0x2a;
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r26816 r26819  
    11621162
    11631163    /* Set the new cursor: */
    1164     m_cursor = cursor(QPixmap::fromImage(image), uXHot, uYHot);
     1164    m_cursor = QCursor(QPixmap::fromImage(image), uXHot, uYHot);
    11651165    NOREF(srcShapePtrScan);
    11661166
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