| 51 | } |
| 52 | |
| 53 | void ValueMap::load(QTextStream& ts) |
| 54 | { |
| 55 | while(!ts.atEnd()) |
| 56 | { // until end of file... |
| 57 | QString s = ts.readLine(); // line of text excluding '\n' |
| 58 | qsizetype pos = s.indexOf('='); |
| 59 | if(pos > 0) // seems not to have a tag |
| 60 | { |
| 61 | QString key = s.left(pos); |
| 62 | QString val = s.mid(pos + 1); |
| 63 | m_map[key] = val; |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | // safeStringJoin and safeStringSplit allow to convert a stringlist into a string and back |
| 69 | // safely, even if the individual strings in the list contain the separator character. |
nothing calls this directly
no outgoing calls
no test coverage detected