Changeset 103687 in vbox
- Timestamp:
- Mar 5, 2024 5:57:51 PM (14 months ago)
- svn:sync-xref-src-repo-rev:
- 162054
- 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 137 137 /** OS info pair. 'first' is id and 'second' is description. */ 138 138 typedef QPair<QString, QString> UIGuestInfoPair; 139 /** A list of all OS famil y pairs. */139 /** A list of all OS families. */ 140 140 typedef QVector<UIFamilyInfo> UIGuestOSFamilyInfo; 141 141 /** A list of all OS type pairs. */ … … 154 154 KPlatformArchitecture enmArch = KPlatformArchitecture_None) const; 155 155 /** Returns the list of subtypes for @p strFamilyId. This may be an empty list. */ 156 QStringList 157 156 QStringList getSubtypesForFamilyId(const QString &strFamilyId, 157 KPlatformArchitecture enmArch = KPlatformArchitecture_None) const; 158 158 /** Returns a list of OS types for the @p strFamilyId. */ 159 UIGuestOSTypeInfo 160 159 UIGuestOSTypeInfo getTypesForFamilyId(const QString &strFamilyId, 160 KPlatformArchitecture enmArch = KPlatformArchitecture_None) const; 161 161 /** Returns a list of OS types for the @p strSubtype. */ 162 UIGuestOSTypeInfo 163 162 UIGuestOSTypeInfo getTypesForSubtype(const QString &strSubtype, 163 KPlatformArchitecture enmArch = KPlatformArchitecture_None) const; 164 164 165 165 /** Returns whether specified @a strOSTypeId is of DOS type. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINameAndSystemEditor.cpp
r103680 r103687 616 616 617 617 /* Acquire family IDs: */ 618 const UIGuestOSTypeManager::UIGuestOSFamilyInfo families = uiCommon().guestOSTypeManager().getFamilies(false, enmArch); 618 const UIGuestOSTypeManager::UIGuestOSFamilyInfo families 619 = uiCommon().guestOSTypeManager().getFamilies(false, enmArch); 619 620 620 621 /* Block signals initially and clear the combo: */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIGuestOSTypeSelectionButton.cpp
r103680 r103687 108 108 m_pMainMenu->clear(); 109 109 110 UIGuestOSTypeManager::UIGuestOSFamilyInfo familyList= uiCommon().guestOSTypeManager().getFamilies(true);110 const UIGuestOSTypeManager::UIGuestOSFamilyInfo familyies = uiCommon().guestOSTypeManager().getFamilies(true); 111 111 112 for (int i = 0; i < family List.size(); ++i)112 for (int i = 0; i < familyies.size(); ++i) 113 113 { 114 const UIFamilyInfo &fi = family List.at(i);114 const UIFamilyInfo &fi = familyies.at(i); 115 115 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); 117 117 118 if ( subtypeList.isEmpty())118 if (distributions.isEmpty()) 119 119 createOSTypeMenu(uiCommon().guestOSTypeManager().getTypesForFamilyId(fi.m_strId), pSubMenu); 120 120 else 121 121 { 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)); 124 125 } 125 126 }
Note:
See TracChangeset
for help on using the changeset viewer.