Changeset 97853 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Dec 22, 2022 10:48:48 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
r96407 r97853 1753 1753 { 1754 1754 /* Send prepared scan-codes to the guest: */ 1755 #ifdef VBOX_IS_QT6_OR_LATER1756 1755 QVector<LONG> scancodes; 1757 for (uint i = 0; i < uCodesCount; i++)1758 scancodes. push_back(pCodes[i]);1756 for (uint i = 0; i < uCodesCount; ++i) 1757 scancodes.append(pCodes[i]); 1759 1758 keyboard().PutScancodes(scancodes); 1760 #else1761 std::vector<LONG> scancodes(pCodes, &pCodes[uCodesCount]);1762 keyboard().PutScancodes(QVector<LONG>::fromStdVector(scancodes));1763 #endif1764 1759 } 1765 1760 … … 1784 1779 Q_UNUSED(iHotKey); 1785 1780 if (pHotKey && pHotKey[0] && !pHotKey[1]) 1786 # ifdef VBOX_IS_QT6_OR_LATER1787 1781 fWasProcessed = actionPool()->processHotKey(QKeySequence(QChar(pHotKey[0]).toUpper().unicode())); 1788 # else1789 fWasProcessed = actionPool()->processHotKey(QKeySequence(Qt::UNICODE_ACCEL + QChar(pHotKey[0]).toUpper().unicode()));1790 # endif1791 1782 1792 1783 #elif defined(VBOX_WS_WIN) … … 1822 1813 { 1823 1814 QChar qtSymbol = QString::fromLocal8Bit(&symbol, 1)[0]; 1824 # ifdef VBOX_IS_QT6_OR_LATER1825 1815 fWasProcessed = actionPool()->processHotKey(QKeySequence(qtSymbol.toUpper().unicode())); 1826 # else1827 fWasProcessed = actionPool()->processHotKey(QKeySequence((Qt::UNICODE_ACCEL + qtSymbol.toUpper().unicode())));1828 # endif1829 1816 } 1830 1817 }
Note:
See TracChangeset
for help on using the changeset viewer.