19 #include <QStringList>
34 QString pre =
string.section(
'-', 0, 0 );
36 QStringList fileVersionParts = pre.section(
"-", 0 ).split(
"." );
41 mMajor = fileVersionParts.at( 0 ).toInt();
43 if ( fileVersionParts.size() > 1 )
45 mMinor = fileVersionParts.at( 1 ).toInt();
47 if ( fileVersionParts.size() > 2 )
49 mSub = fileVersionParts.at( 2 ).toInt();
51 mName =
string.section(
'-', 1 );