1.11.2 split up of xml helper functions. started to work on attributes
3 bool checkVersion (const QString &v)
5 // returns true, if vym is able to read file regarding
6 // the version set with setVersion
7 return checkVersion (v,__VYM_VERSION);
9 QString s1=v.section (".",0,0);
10 QString s2=v.section (".",1,1);
11 QString s3=v.section (".",2,2);
13 int vv1 =QString(__VYM_VERSION).section (".",0,0).toInt(&ok,10);
14 int vv2 =QString(__VYM_VERSION).section (".",1,1).toInt(&ok,10);
15 int vv3 =QString(__VYM_VERSION).section (".",2,2).toInt(&ok,10);
19 if (!s1.isEmpty() ) mv1=s1.toInt(&ok,10);
20 if (!s2.isEmpty() ) mv2=s2.toInt(&ok,10);
21 if (!s3.isEmpty() ) mv3=s3.toInt(&ok,10);
39 bool checkVersion (const QString &v, const QString &d)
41 QString v1=v.section (".",0,0);
42 QString v2=v.section (".",1,1);
43 QString v3=v.section (".",2,2);
44 QString d1=d.section (".",0,0);
45 QString d2=d.section (".",1,1);
46 QString d3=d.section (".",2,2);
48 int d1i=d1.toInt(&ok,10);
49 int d2i=d2.toInt(&ok,10);
50 int d3i=d3.toInt(&ok,10);
54 if (!v1.isEmpty() ) v1i=v1.toInt(&ok,10);
55 if (!v2.isEmpty() ) v2i=v2.toInt(&ok,10);
56 if (!v3.isEmpty() ) v3i=v3.toInt(&ok,10);