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 );
 
   61   return (( mMajor == other.mMajor ) &&
 
   62           ( mMinor == other.mMinor ) &&
 
   63           ( mSub == other.mSub ) );
 
   70   return (( mMajor >= other.mMajor ) ||
 
   71           (( mMajor == other.mMajor ) && ( mMinor >= other.mMinor ) ) ||
 
   72           (( mMajor == other.mMajor ) && ( mMinor == other.mMinor ) && ( mSub >= other.mSub ) ) );
 
   79   return (( mMajor > other.mMajor ) ||
 
   80           (( mMajor == other.mMajor ) && ( mMinor > other.mMinor ) ) ||
 
   81           (( mMajor == other.mMajor ) && ( mMinor == other.mMinor ) && ( mSub > other.mSub ) ) );
 
   88     return QString( 
"%1.%2.%3" ).arg( mMajor ).arg( mMinor ).arg( mSub );
 
   92     return QString( 
"%1.%2.%3-%4" ).arg( mMajor ).arg( mMinor ).arg( mSub ).arg( mName );