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

Method readColorEntry

src/common.cpp:194–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194QColor ValueMap::readColorEntry(const QString& k, const QColor* defaultVal)
195{
196 QColor c = *defaultVal;
197 std::map<QString, QString>::iterator i = m_map.find(k);
198 if(i != m_map.end())
199 {
200 QString s = i->second;
201 c = QColor(s.split(',')[0].toInt(), s.split(',')[1].toInt(), s.split(',')[2].toInt());
202 }
203
204 return c;
205}
206
207QSize ValueMap::readSizeEntry(const QString& k, const QSize* defaultVal)
208{

Callers

nothing calls this directly

Calls 3

endMethod · 0.80
splitMethod · 0.80
QColorClass · 0.70

Tested by

no test coverage detected