VirtualBox

Ignore:
Timestamp:
Feb 10, 2010 7:24:32 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57495
Message:

UINewVMWzd.cpp: Regexp additions. A suggestion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzd.cpp

    r26392 r26400  
    6161    { QRegExp("Wi.*7.*64", Qt::CaseInsensitive), "Windows7_64" },
    6262    { QRegExp("Wi.*7", Qt::CaseInsensitive), "Windows7" },
    63     { QRegExp("Wi", Qt::CaseInsensitive), "WindowsXP" },
    64     { QRegExp("OS2.*W.*4.?5", Qt::CaseInsensitive), "OS2Warp45" },
    65     { QRegExp("OS2.*W.*4", Qt::CaseInsensitive), "OS2Warp4" },
    66     { QRegExp("OS2.*W", Qt::CaseInsensitive), "OS2Warp3" },
    67     { QRegExp("OS2.*e", Qt::CaseInsensitive), "OS2eCS" },
    68     { QRegExp("OS2", Qt::CaseInsensitive), "OS2" },
     63    { QRegExp("(Wi)|(XP)", Qt::CaseInsensitive), "WindowsXP" },
     64    { QRegExp("OS[/|!-]{,1}2.*W.*4.?5", Qt::CaseInsensitive), "OS2Warp45" },
     65    { QRegExp("OS[/|!-]{,1}2.*W.*4", Qt::CaseInsensitive), "OS2Warp4" },
     66    { QRegExp("OS[/|!-]{,1}2.*W", Qt::CaseInsensitive), "OS2Warp3" },
     67    { QRegExp("(OS[/|!-]{,1}2.*e)|(eCS.*)", Qt::CaseInsensitive), "OS2eCS" },
     68    { QRegExp("OS[/|!-]{,1}2", Qt::CaseInsensitive), "OS2" },
    6969
    7070    /* Code names for Linux distributions */
     
    218218    /* Search for a matching OS type based on the string the user typed
    219219     * already. */
     220    /** @todo Perhaps we shouldn't do this if the user has manually selected
     221     *        anything in any of the the combo boxes. */
    220222    for (size_t i=0; i < RT_ELEMENTS(gs_OSTypePattern); ++i)
    221223        if (strNewText.contains(gs_OSTypePattern[i].pattern))
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