Changeset 26456 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Feb 12, 2010 10:24:59 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57604
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzd.cpp
r26440 r26456 193 193 connect(m_pNameEditor, SIGNAL(textChanged(const QString&)), 194 194 this, SLOT(sltNameChanged(const QString&))); 195 connect(m_pTypeSelector, SIGNAL(osTypeChanged()), 196 this, SLOT(sltOsTypeChanged())); 195 197 196 198 /* Setup contents */ … … 223 225 /* Search for a matching OS type based on the string the user typed 224 226 * already. */ 225 /** @todo Perhaps we shouldn't do this if the user has manually selected226 * anything in any of the the combo boxes. */227 227 for (size_t i=0; i < RT_ELEMENTS(gs_OSTypePattern); ++i) 228 228 if (strNewText.contains(gs_OSTypePattern[i].pattern)) 229 229 { 230 m_pTypeSelector->blockSignals(true); 230 231 m_pTypeSelector->setType(vboxGlobal().vmGuestOSType(gs_OSTypePattern[i].pcstId)); 232 m_pTypeSelector->blockSignals(false); 231 233 break; 232 234 } 235 } 236 237 void UINewVMWzdPage2::sltOsTypeChanged() 238 { 239 /* If the user manually edited the OS type, we didn't want our automatic OS 240 * type guessing anymore. So simply disconnect the text edit signal. */ 241 disconnect(m_pNameEditor, SIGNAL(textChanged(const QString&)), 242 this, SLOT(sltNameChanged(const QString&))); 233 243 } 234 244 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzd.h
r26367 r26456 76 76 77 77 void sltNameChanged(const QString &strNewText); 78 void sltOsTypeChanged(); 78 79 79 80 protected:
Note:
See TracChangeset
for help on using the changeset viewer.