- Timestamp:
- Nov 4, 2010 3:59:35 PM (14 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/widgets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxOSTypeSelectorWidget.cpp
r28800 r33781 52 52 mCbType->setSizePolicy (QSizePolicy::Expanding, QSizePolicy::Fixed); 53 53 mPxTypeIcon->setFixedSize (32, 32); 54 55 /* Check if host supports (AMD-V or VT-x) and long mode */ 56 CHost host = vboxGlobal().virtualBox().GetHost(); 57 m_fSupportsHWVirtEx = host.GetProcessorFeature(KProcessorFeature_HWVirtEx); 58 m_fSupportsLongMode = host.GetProcessorFeature(KProcessorFeature_LongMode); 54 59 55 60 /* Fill OS family selector */ … … 168 173 mCbType->clear(); 169 174 170 /* Check if host supports (AMD-V or VT-x) and long mode */171 CHost host = vboxGlobal().virtualBox().GetHost();172 bool mSupportsHWVirtEx = host.GetProcessorFeature (KProcessorFeature_HWVirtEx);173 bool mSupportsLongMode = host.GetProcessorFeature (KProcessorFeature_LongMode);174 175 175 /* Populate combo-box with OS Types related to currently selected Family ID */ 176 176 QString familyId (mCbFamily->itemData (aIndex, RoleTypeID).toString()); … … 178 178 for (int i = 0; i < types.size(); ++ i) 179 179 { 180 if (types [i].GetIs64Bit() && (!m SupportsHWVirtEx || !mSupportsLongMode))180 if (types [i].GetIs64Bit() && (!m_fSupportsHWVirtEx || !m_fSupportsLongMode)) 181 181 continue; 182 182 int index = mCbType->count(); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxOSTypeSelectorWidget.h
r28800 r33781 72 72 int mLayoutPosition; 73 73 bool mLayoutActivated; 74 75 bool m_fSupportsHWVirtEx; 76 bool m_fSupportsLongMode; 74 77 }; 75 78
Note:
See TracChangeset
for help on using the changeset viewer.