| 264 | } |
| 265 | |
| 266 | void NppImporter::readConfigModel(const QString &filePath) |
| 267 | { |
| 268 | QFile file(filePath); |
| 269 | |
| 270 | if (file.open(QIODevice::ReadOnly)) { |
| 271 | QXmlStreamReader xml(&file); |
| 272 | |
| 273 | xml.readNextStartElement(); |
| 274 | while (xml.readNextStartElement()) { |
| 275 | if (xml.name() == QStringLiteral("GUIConfigs")) { |
| 276 | readGUIConfigs(xml); |
| 277 | } |
| 278 | else { |
| 279 | xml.skipCurrentElement(); |
| 280 | } |
| 281 | } |
| 282 | if (xml.hasError()) { |
| 283 | qWarning("%s", qUtf8Printable(xml.errorString())); |
| 284 | } |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | void NppImporter::readLexerStyles(QXmlStreamReader &xml) |
| 289 | { |
nothing calls this directly
no outgoing calls
no test coverage detected