MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / getVariant

Method getVariant

src/config/ConfigContainer.cpp:16–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16QVariant ConfigContainer::getVariant(const QString &key,
17 bool silent,
18 bool* exists)
19{
20 if(exists != NULL){
21 *exists = map.contains(key);
22 }
23
24 if (!map.contains(key))
25 {
26 if (!silent)
27 {
28 Log::debug(QString("Key '%1' not found").arg(key));
29 }
30
31 return QVariant();
32 }
33
34 return map.find(key).value();
35}
36
37QString ConfigContainer::getString(const QString &key,
38 bool setToDefaultIfMissing,

Callers 4

getMethod · 0.80
typeMethod · 0.80
getMethod · 0.80
existsMethod · 0.80

Calls 4

QStringClass · 0.50
QVariantClass · 0.50
containsMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected