VirtualBox

Changeset 104592 in vbox for trunk/src


Ignore:
Timestamp:
May 13, 2024 12:34:31 PM (12 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
163133
Message:

FE/Qt: bugref:10450: Get rid of pre-5.14 code related to QSet/QList conversion.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.cpp

    r104447 r104592  
    36473647
    36483648    /* Invalidate all known menus: */
    3649 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
    3650     QList<int> const updateHandlerKeys = m_menuUpdateHandlers.keys();
     3649    const QList<int> const updateHandlerKeys = m_menuUpdateHandlers.keys();
    36513650    m_invalidations.unite(QSet<int>(updateHandlerKeys.begin(), updateHandlerKeys.end()));
    3652 #else
    3653     m_invalidations.unite(m_menuUpdateHandlers.keys().toSet());
    3654 #endif
    36553651
    36563652    /* Apply language settings: */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp

    r103771 r104592  
    222222    {
    223223        /* Get new group list/set: */
    224         const QStringList &newGroupList = m_newLists.value(strId);
    225 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
     224        const QStringList newGroupList = m_newLists.value(strId);
    226225        const UIStringSet newGroupSet(newGroupList.begin(), newGroupList.end());
    227 #else
    228         const UIStringSet &newGroupSet = UIStringSet::fromList(newGroupList);
    229 #endif
    230226        /* Get old group list/set: */
    231         const QStringList &oldGroupList = m_oldLists.value(strId);
    232 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
     227        const QStringList oldGroupList = m_oldLists.value(strId);
    233228        const UIStringSet oldGroupSet(oldGroupList.begin(), oldGroupList.end());
    234 #else
    235         const UIStringSet &oldGroupSet = UIStringSet::fromList(oldGroupList);
    236 #endif
    237229        /* Make sure group set changed: */
    238230        if (newGroupSet == oldGroupSet)
     
    999991            if (!unregisteredIDs.isEmpty())
    1000992            {
    1001 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
    1002                 QList<QUuid> listUnregisteredIDs(unregisteredIDs.begin(), unregisteredIDs.end());
    1003 #else
    1004                 QList<QUuid> listUnregisteredIDs = unregisteredIDs.toList();
    1005 #endif
     993                const QList<QUuid> listUnregisteredIDs(unregisteredIDs.begin(), unregisteredIDs.end());
    1006994                sltCloudMachinesUnregistered(guiCloudProfileKey.m_strProviderShortName,
    1007995                                             guiCloudProfileKey.m_strProfileName,
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp

    r104393 r104592  
    16271627    if (!allHostComboKeys.isEmpty())
    16281628    {
    1629         const QList<int> &pressedKeyList = m_pressedHostComboKeys.keys();
    1630 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
     1629        const QList<int> pressedKeyList = m_pressedHostComboKeys.keys();
    16311630        fIsFullHostComboPresent =    QSet<int>(allHostComboKeys.begin(), allHostComboKeys.end())
    16321631                                  == QSet<int>(pressedKeyList.begin(), pressedKeyList.end());
    1633 #else
    1634         fIsFullHostComboPresent = allHostComboKeys.toSet() == pressedKeyList.toSet();
    1635 #endif
    16361632    }
    16371633
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