| 162 | } |
| 163 | |
| 164 | int COperate::Load(QString szFile) |
| 165 | { |
| 166 | Q_ASSERT(!szFile.isEmpty()); |
| 167 | if(szFile.isEmpty()) |
| 168 | { |
| 169 | qCritical(log) << "The load file is empty"; |
| 170 | return -1; |
| 171 | } |
| 172 | qInfo(log) << "Load configure file:" << szFile; |
| 173 | QSettings set(szFile, QSettings::IniFormat); |
| 174 | return Load(set); |
| 175 | } |
| 176 | |
| 177 | int COperate::Save(QString szFile) |
| 178 | { |
no test coverage detected