MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / getSettingCached

Method getSettingCached

src/settings.cpp:268–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268QVariant Settings::getSettingCached(Settings::SettingsEnum setting)
269{
270 if (settings_cache.contains(setting))
271 return settings_cache.value(setting);
272
273 QSettings settings;
274 QVariant value = settings.value(getSettingPath(setting), getDefaultValue(setting));
275 settings_cache.insert(setting, value);
276 return value;
277}
278
279void Settings::setSettingInCache(Settings::SettingsEnum setting, const QVariant& value)
280{

Callers 15

mmToPixelPhysicalFunction · 0.80
pixelToMMPhysicalFunction · 0.80
isAntialiasingRequiredFunction · 0.80
addDefaultAnglesDegMethod · 0.80
drawMethod · 0.80
clickPressMethod · 0.80
calculateScaleFactorFunction · 0.80
settingsChangedMethod · 0.80
drawTemplateMethod · 0.80
renderCommonMethod · 0.80

Calls 3

containsMethod · 0.45
valueMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected