Changeset 103871 in vbox
- Timestamp:
- Mar 15, 2024 3:58:13 PM (12 months ago)
- svn:sync-xref-src-repo-rev:
- 162242
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSType.cpp
r103870 r103871 171 171 UIGuestOSTypeManager::UIGuestOSTypeInfo 172 172 UIGuestOSTypeManager::getTypesForFamilyId(const QString &strFamilyId, 173 bool fListAll, 173 174 KPlatformArchitecture enmArch /* = KPlatformArchitecture_None */) const 174 175 { … … 178 179 foreach (const UIGuestOSType &type, m_guestOSTypes) 179 180 { 181 if (!fListAll && !type.isSupported()) 182 continue; 180 183 if (type.getFamilyId() != strFamilyId) 181 184 continue; … … 192 195 UIGuestOSTypeManager::UIGuestOSTypeInfo 193 196 UIGuestOSTypeManager::getTypesForSubtype(const QString &strSubtype, 197 bool fListAll, 194 198 KPlatformArchitecture enmArch /* = KPlatformArchitecture_None */) const 195 199 { … … 199 203 foreach (const UIGuestOSType &type, m_guestOSTypes) 200 204 { 205 if (!fListAll && !type.isSupported()) 206 continue; 201 207 if (type.getSubtype() != strSubtype) 202 208 continue; -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSType.h
r103870 r103871 201 201 /** Returns a list of OS types for the @p strFamilyId. */ 202 202 UIGuestOSTypeInfo getTypesForFamilyId(const QString &strFamilyId, 203 bool fListAll, 203 204 KPlatformArchitecture enmArch = KPlatformArchitecture_None) const; 204 205 /** Returns a list of OS types for the @p strSubtype. */ 205 206 UIGuestOSTypeInfo getTypesForSubtype(const QString &strSubtype, 207 bool fListAll, 206 208 KPlatformArchitecture enmArch = KPlatformArchitecture_None) const; 207 209 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINameAndSystemEditor.cpp
r103771 r103871 343 343 const UIGuestOSTypeManager::UIGuestOSTypeInfo types 344 344 = m_strDistribution.isEmpty() 345 ? gpGlobalSession->guestOSTypeManager().getTypesForFamilyId(m_strFamilyId, enmArch)346 : gpGlobalSession->guestOSTypeManager().getTypesForSubtype(m_strDistribution, enmArch);345 ? gpGlobalSession->guestOSTypeManager().getTypesForFamilyId(m_strFamilyId, false, enmArch) 346 : gpGlobalSession->guestOSTypeManager().getTypesForSubtype(m_strDistribution, false, enmArch); 347 347 348 348 /* Save the most recently used item: */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIGuestOSTypeSelectionButton.cpp
r103771 r103871 117 117 118 118 if (distributions.isEmpty()) 119 createOSTypeMenu(gpGlobalSession->guestOSTypeManager().getTypesForFamilyId(fi.m_strId ), pSubMenu);119 createOSTypeMenu(gpGlobalSession->guestOSTypeManager().getTypesForFamilyId(fi.m_strId, true), pSubMenu); 120 120 else 121 121 { 122 122 foreach (const UISubtypeInfo &distribution, distributions) 123 createOSTypeMenu(gpGlobalSession->guestOSTypeManager().getTypesForSubtype(distribution.m_strName ),123 createOSTypeMenu(gpGlobalSession->guestOSTypeManager().getTypesForSubtype(distribution.m_strName, true), 124 124 pSubMenu->addMenu(distribution.m_strName)); 125 125 }
Note:
See TracChangeset
for help on using the changeset viewer.