MCPcopy Create free account
hub / github.com/KDE/kdiff3 / readPointEntry

Method readPointEntry

src/common.cpp:221–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221QPoint 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
234bool ValueMap::readBoolEntry(const QString& k, bool bDefault)
235{

Callers

nothing calls this directly

Calls 3

QPointClass · 0.85
endMethod · 0.80
splitMethod · 0.80

Tested by

no test coverage detected