MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / WizIniReadIntDef

Function WizIniReadIntDef

src/share/WizMisc.cpp:2783–2788  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2781
2782
2783int WizIniReadIntDef(const CString& strFile, const CString& strSection, const CString& strKey, int defaultValue)
2784{
2785 QSettings settings(strFile, QSettings::IniFormat);
2786 QString strStr = strSection.isEmpty() ? strKey : strSection + "/" + strKey;
2787 return settings.value(strStr, defaultValue).toInt();
2788}
2789
2790
2791void WizIniWriteInt(const CString& strFile, const CString& strSection, const CString& strKey, int nValue)

Callers 5

getUseDaysMethod · 0.85
getInstallDaysMethod · 0.85
increaseCounterMethod · 0.85
addDurationMethod · 0.85
logUseDaysMethod · 0.85

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected