| 33 | } |
| 34 | |
| 35 | int CParameter::Load(QString szFile) |
| 36 | { |
| 37 | if(szFile.isEmpty()) |
| 38 | szFile = RabbitCommon::CDir::Instance()->GetFileUserConfigure(); |
| 39 | qDebug(log) << "Load configure file:" << szFile; |
| 40 | if(szFile.isEmpty()) return -1; |
| 41 | QSettings set(szFile, QSettings::IniFormat); |
| 42 | int nRet = Load(set); |
| 43 | SetModified(false); |
| 44 | return nRet; |
| 45 | } |
| 46 | |
| 47 | int CParameter::Save(QString szFile, bool bForce) |
| 48 | { |