MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / readConfigModel

Method readConfigModel

src/NppImporter.cpp:266–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266void 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
288void NppImporter::readLexerStyles(QXmlStreamReader &xml)
289{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected