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

Method accept

src/Options.cpp:51–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51bool OptionItemBase::accept(const QString& key, const QString& val)
52{
53 if(getSaveName() != key)
54 return false;
55
56 preserve();
57
58 ValueMap config;
59 config.writeEntry(key, val); // Write the value as a string and
60 read(&config); // use the internal conversion from string to the needed value.
61
62 return true;
63}
64
65void Options::init()
66{

Callers 5

wheelEventMethod · 0.45
closeEventMethod · 0.45
wheelEventMethod · 0.45
dropEventMethod · 0.45
wheelEventMethod · 0.45

Calls 4

getSaveNameFunction · 0.85
preserveFunction · 0.85
readFunction · 0.85
writeEntryMethod · 0.45

Tested by

no test coverage detected