VirtualBox

Changeset 94031 in vbox for trunk/src


Ignore:
Timestamp:
Mar 1, 2022 11:16:54 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
150264
Message:

FE/Qt: qt6: QList, QSet & QVector adjustments. [build fix] bugref:9898

  • QList::toSet was removed in "favor" of QSet's range constructors (5.14+). Similarly QSet::fromList. Very tedious and there were some unnecessary QSet conversions.
  • QVector was mapped to QList and fromStdVector discontinued in 6.
File:
1 edited

Legend:

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

    r94029 r94031  
    16411641    {
    16421642        const QList<int> &pressedKeyList = m_pressedHostComboKeys.keys();
     1643#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
    16431644        fIsFullHostComboPresent =    QSet<int>(allHostComboKeys.begin(), allHostComboKeys.end())
    16441645                                  == QSet<int>(pressedKeyList.begin(), pressedKeyList.end());
     1646#else
     1647        fIsFullHostComboPresent = allHostComboKeys.toSet() == pressedKeyList.toSet();
     1648#endif
    16451649    }
    16461650
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette