VirtualBox

Changeset 48759 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Sep 29, 2013 7:35:06 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89396
Message:

UIWizardNewVMPageBasic1.cpp: Better Mac OS X version detection.

File:
1 edited

Legend:

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

    r48687 r48759  
    8686    { QRegExp("OS[/|!-]{,1}2", Qt::CaseInsensitive), "OS2" },
    8787
    88     /* Other: must come before Ubuntu/Maverick and before Linux */
    89     { QRegExp("Lion", Qt::CaseInsensitive), "MacOS107_64" },
    90     { QRegExp("Mavericks", Qt::CaseInsensitive), "MacOS109_64" },
     88    /* Other: must come before Ubuntu/Maverick and before Linux ??? */
     89    { QRegExp("QN", Qt::CaseInsensitive), "QNX" },
     90
     91    /* Mac OS X: must come before Ubuntu/Maverick and before Linux */
     92    { QRegExp("((mac.*10[.,]{0,1}4)|(os.*x.*10[.,]{0,1}4)|(mac.*ti)|(os.*x.*ti)|(Tig)).64",     Qt::CaseInsensitive), "MacOS_64" },
     93    { QRegExp( "(mac.*10[.,]{0,1}4)|(os.*x.*10[.,]{0,1}4)|(mac.*ti)|(os.*x.*ti)|(Tig)",         Qt::CaseInsensitive), "MacOS" },
     94    { QRegExp("((mac.*10[.,]{0,1}5)|(os.*x.*10[.,]{0,1}5)|(mac.*leo)|(os.*x.*leo)|(Leop)).*64", Qt::CaseInsensitive), "MacOS_64" },
     95    { QRegExp( "(mac.*10[.,]{0,1}5)|(os.*x.*10[.,]{0,1}5)|(mac.*leo)|(os.*x.*leo)|(Leop)",      Qt::CaseInsensitive), "MacOS" },
     96    { QRegExp("((mac.*10[.,]{0,1}6)|(os.*x.*10[.,]{0,1}6)|(mac.*SL)|(os.*x.*SL)|(Snow L)).*64", Qt::CaseInsensitive), "MacOS106_64" },
     97    { QRegExp( "(mac.*10[.,]{0,1}6)|(os.*x.*10[.,]{0,1}6)|(mac.*SL)|(os.*x.*SL)|(Snow L)",      Qt::CaseInsensitive), "MacOS106" },
     98    { QRegExp( "(mac.*10[.,]{0,1}7)|(os.*x.*10[.,]{0,1}7)|(mac.*ML)|(os.*x.*ML)|(Mount)",       Qt::CaseInsensitive), "MacOS108_64" },
     99    { QRegExp( "(mac.*10[.,]{0,1}8)|(os.*x.*10[.,]{0,1}8)|(Lion)",                              Qt::CaseInsensitive), "MacOS107_64" },
     100    { QRegExp( "(mac.*10[.,]{0,1}9)|(os.*x.*10[.,]{0,1}9)|(mac.*mav)|(os.*x.*mav)|(Mavericks)", Qt::CaseInsensitive), "MacOS109_64" },
     101    { QRegExp("((Mac)|(Tig)|(Leop)|(os[ ]*x)).*64", Qt::CaseInsensitive), "MacOS_64" },
     102    { QRegExp("(Mac)|(Tig)|(Leop)|(os[ ]*x)", Qt::CaseInsensitive), "MacOS" },
    91103
    92104    /* Code names for Linux distributions: */
     
    139151    { QRegExp("Ne.*B.*64", Qt::CaseInsensitive), "NetBSD_64" },
    140152    { QRegExp("Ne.*B", Qt::CaseInsensitive), "NetBSD" },
    141     { QRegExp("QN", Qt::CaseInsensitive), "QNX" },
    142     { QRegExp("Snow L.*64", Qt::CaseInsensitive), "MacOS106_64" },
    143     { QRegExp("Snow L", Qt::CaseInsensitive), "MacOS106" },
    144     { QRegExp("Mount", Qt::CaseInsensitive), "MacOS108_64" },
    145     { QRegExp("((Mac)|(Tig)|(Leop)|(osx)).*64", Qt::CaseInsensitive), "MacOS_64" },
    146     { QRegExp("(Mac)|(Tig)|(Leop)|(osx)", Qt::CaseInsensitive), "MacOS" },
    147153    { QRegExp("Net", Qt::CaseInsensitive), "Netware" },
    148154    { QRegExp("Rocki", Qt::CaseInsensitive), "JRockitVE" },
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