VirtualBox

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

FE/Qt: qt6: Qt::UNICODE_ACCEL was removed (it was zero, so it didn't really have any real meaning, I guess). bugref:9898

File:
1 edited

Legend:

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

    r94031 r94035  
    17741774    Q_UNUSED(iHotKey);
    17751775    if (pHotKey && pHotKey[0] && !pHotKey[1])
     1776# if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
     1777        fWasProcessed = actionPool()->processHotKey(QKeySequence(QChar(pHotKey[0]).toUpper().unicode()));
     1778# else
    17761779        fWasProcessed = actionPool()->processHotKey(QKeySequence(Qt::UNICODE_ACCEL + QChar(pHotKey[0]).toUpper().unicode()));
     1780# endif
    17771781
    17781782#elif defined(VBOX_WS_WIN)
     
    18081812        {
    18091813            QChar qtSymbol = QString::fromLocal8Bit(&symbol, 1)[0];
     1814# if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
     1815            fWasProcessed = actionPool()->processHotKey(QKeySequence(qtSymbol.toUpper().unicode()));
     1816# else
    18101817            fWasProcessed = actionPool()->processHotKey(QKeySequence((Qt::UNICODE_ACCEL + qtSymbol.toUpper().unicode())));
     1818# endif
    18111819        }
    18121820    }
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