VirtualBox

Changeset 103687 in vbox


Ignore:
Timestamp:
Mar 5, 2024 5:57:51 PM (14 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
162054
Message:

FE/Qt: bugref:10384: More cleanup for UIGuestOSType.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSType.h

    r103686 r103687  
    137137    /** OS info pair. 'first' is id and 'second' is description. */
    138138    typedef QPair<QString, QString> UIGuestInfoPair;
    139     /** A list of all OS family pairs. */
     139    /** A list of all OS families. */
    140140    typedef QVector<UIFamilyInfo> UIGuestOSFamilyInfo;
    141141    /** A list of all OS type pairs. */
     
    154154                                    KPlatformArchitecture enmArch = KPlatformArchitecture_None) const;
    155155    /** Returns the list of subtypes for @p strFamilyId. This may be an empty list. */
    156     QStringList         getSubtypesForFamilyId(const QString &strFamilyId,
    157                                                KPlatformArchitecture enmArch = KPlatformArchitecture_None) const;
     156    QStringList getSubtypesForFamilyId(const QString &strFamilyId,
     157                                       KPlatformArchitecture enmArch = KPlatformArchitecture_None) const;
    158158    /** Returns a list of OS types for the @p strFamilyId. */
    159     UIGuestOSTypeInfo   getTypesForFamilyId(const QString &strFamilyId,
    160                                             KPlatformArchitecture enmArch = KPlatformArchitecture_None) const;
     159    UIGuestOSTypeInfo getTypesForFamilyId(const QString &strFamilyId,
     160                                          KPlatformArchitecture enmArch = KPlatformArchitecture_None) const;
    161161    /** Returns a list of OS types for the @p strSubtype. */
    162     UIGuestOSTypeInfo   getTypesForSubtype(const QString &strSubtype,
    163                                            KPlatformArchitecture enmArch = KPlatformArchitecture_None) const;
     162    UIGuestOSTypeInfo getTypesForSubtype(const QString &strSubtype,
     163                                         KPlatformArchitecture enmArch = KPlatformArchitecture_None) const;
    164164
    165165    /** Returns whether specified @a strOSTypeId is of DOS type. */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINameAndSystemEditor.cpp

    r103680 r103687  
    616616
    617617    /* Acquire family IDs: */
    618     const UIGuestOSTypeManager::UIGuestOSFamilyInfo families = uiCommon().guestOSTypeManager().getFamilies(false, enmArch);
     618    const UIGuestOSTypeManager::UIGuestOSFamilyInfo families
     619        = uiCommon().guestOSTypeManager().getFamilies(false, enmArch);
    619620
    620621    /* Block signals initially and clear the combo: */
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIGuestOSTypeSelectionButton.cpp

    r103680 r103687  
    108108    m_pMainMenu->clear();
    109109
    110     UIGuestOSTypeManager::UIGuestOSFamilyInfo familyList = uiCommon().guestOSTypeManager().getFamilies(true);
     110    const UIGuestOSTypeManager::UIGuestOSFamilyInfo familyies = uiCommon().guestOSTypeManager().getFamilies(true);
    111111
    112     for (int i = 0; i < familyList.size(); ++i)
     112    for (int i = 0; i < familyies.size(); ++i)
    113113    {
    114         const UIFamilyInfo &fi = familyList.at(i);
     114        const UIFamilyInfo &fi = familyies.at(i);
    115115        QMenu *pSubMenu = m_pMainMenu->addMenu(fi.m_strDescription);
    116         QStringList subtypeList = uiCommon().guestOSTypeManager().getSubtypesForFamilyId(fi.m_strId);
     116        const QStringList distributions = uiCommon().guestOSTypeManager().getSubtypesForFamilyId(fi.m_strId);
    117117
    118         if (subtypeList.isEmpty())
     118        if (distributions.isEmpty())
    119119            createOSTypeMenu(uiCommon().guestOSTypeManager().getTypesForFamilyId(fi.m_strId), pSubMenu);
    120120        else
    121121        {
    122             foreach (const QString &strSubtype, subtypeList)
    123                 createOSTypeMenu(uiCommon().guestOSTypeManager().getTypesForSubtype(strSubtype), pSubMenu->addMenu(strSubtype));
     122            foreach (const QString &strDistribution, distributions)
     123                createOSTypeMenu(uiCommon().guestOSTypeManager().getTypesForSubtype(strDistribution),
     124                                 pSubMenu->addMenu(strDistribution));
    124125        }
    125126    }
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