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

Method read

src/optiondialog.cpp:460–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458 }
459
460 void read(ValueMap* config) override
461 {
462 QString codecName = config->readEntry(m_saveName, (const char*)m_codecVec[currentIndex()]);
463 for(qint32 i = 0; i < m_codecVec.size(); ++i)
464 {
465 if(codecName == QLatin1String(m_codecVec[i]))
466 {
467 setCurrentIndex(i);
468 if(mVarCodec != nullptr) *mVarCodec = m_codecVec[i];
469 break;
470 }
471 }
472 }
473
474 protected:
475 void preserveImp() override { m_preservedVal = currentIndex(); }

Callers

nothing calls this directly

Calls 2

readEntryMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected