MCPcopy Create free account
hub / github.com/KDE/falkon / getValue

Method getValue

src/plugins/GreaseMonkey/gm_jsobject.cpp:41–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41QString GM_JSObject::getValue(const QString &nspace, const QString &name, const QString &dValue)
42{
43 QString valueName = QSL("GreaseMonkey-%1/%2").arg(nspace, name);
44 QString savedValue = m_settings->value(valueName, dValue).toString();
45
46 if (savedValue.isEmpty()) {
47 return dValue;
48 }
49
50 return savedValue;
51}
52
53bool GM_JSObject::setValue(const QString &nspace, const QString &name, const QString &value)
54{

Callers 2

values.min.jsFile · 0.80
values.jsFile · 0.80

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected