| 219 | } |
| 220 | |
| 221 | QPoint ValueMap::readPointEntry(const QString& k, const QPoint* defaultVal) |
| 222 | { |
| 223 | QPoint point = defaultVal ? *defaultVal : QPoint(0, 0); |
| 224 | std::map<QString, QString>::iterator i = m_map.find(k); |
| 225 | if(i != m_map.end()) |
| 226 | { |
| 227 | QString s = i->second; |
| 228 | point = QPoint(s.split(',')[0].toInt(), s.split(',')[1].toInt()); |
| 229 | } |
| 230 | |
| 231 | return point; |
| 232 | } |
| 233 | |
| 234 | bool ValueMap::readBoolEntry(const QString& k, bool bDefault) |
| 235 | { |