MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / getInt

Method getInt

src/config/ConfigContainer.cpp:56–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56int ConfigContainer::getInt(const QString &key,
57 bool setToDefaultIfMissing,
58 int defaults)
59{
60 if (!map.contains(key))
61 {
62 Log::debug(QString("Key '%1' not found").arg(key));
63
64 if (setToDefaultIfMissing)
65 {
66 map[key] = defaults;
67 }
68
69 return defaults;
70 }
71
72 return getVariant(key).toInt();
73}
74
75float ConfigContainer::getFloat(const QString &key,
76 bool setToDefaultIfMissing,

Callers 13

onGetDefaultValueMethod · 0.80
onCreateMethod · 0.80
onCreateMethod · 0.80
onCreateMethod · 0.80
onStartCommandMethod · 0.80
updateDspMethod · 0.80
onGetDefaultValueMethod · 0.80
onCreateMethod · 0.80
onCreateMethod · 0.80
onCreateMethod · 0.80
onStartCommandMethod · 0.80
updateDspMethod · 0.80

Calls 2

QStringClass · 0.50
containsMethod · 0.45

Tested by

no test coverage detected