| 54 | } |
| 55 | |
| 56 | static void StringToFormatArray(const QString &str, std::vector<StringPair> &protocolFormats) |
| 57 | { |
| 58 | QStringList arr = str.split(";"); |
| 59 | for (int i=0; i<arr.size(); i++){ |
| 60 | QString line = arr[i]; |
| 61 | if (!line.isEmpty()){ |
| 62 | QStringList vs = line.split("="); |
| 63 | if (vs.size() == 2){ |
| 64 | protocolFormats.push_back(StringPair(vs[0].toStdString(), vs[1].toStdString())); |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | //----------------read write field |
| 71 | static void getFiled(const char *key, QSettings &st, QString &f, const char *dv) |
no test coverage detected