| 125 | |
| 126 | |
| 127 | bool INIFile::loadFile(QString fileName) |
| 128 | { |
| 129 | QFile file(fileName); |
| 130 | if (!file.open(QIODevice::ReadOnly)) |
| 131 | return false; |
| 132 | bool success = loadFile(file.readAll()); |
| 133 | file.close(); |
| 134 | return success; |
| 135 | } |
| 136 | |
| 137 | bool INIFile::loadFile(QByteArray file) |
| 138 | { |