3 bool checkVersion (const QString &v)
5 // returns true, if vym is able to read file regarding
6 // the version set with setVersion
7 QString s1=v.section (".",0,0);
8 QString s2=v.section (".",1,1);
9 QString s3=v.section (".",2,2);
11 int vv1 =QString(__VYM_VERSION).section (".",0,0).toInt(&ok,10);
12 int vv2 =QString(__VYM_VERSION).section (".",1,1).toInt(&ok,10);
13 int vv3 =QString(__VYM_VERSION).section (".",2,2).toInt(&ok,10);
17 if (!s1.isEmpty() ) mv1=s1.toInt(&ok,10);
18 if (!s2.isEmpty() ) mv2=s2.toInt(&ok,10);
19 if (!s3.isEmpty() ) mv3=s3.toInt(&ok,10);