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

Method readStylersModel

src/NppImporter.cpp:241–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241void NppImporter::readStylersModel(const QString &filePath)
242{
243 QFile file(filePath);
244
245 if (file.open(QIODevice::ReadOnly)) {
246 QXmlStreamReader xml(&file);
247
248 xml.readNextStartElement();
249 while (xml.readNextStartElement()) {
250 if (xml.name() == QStringLiteral("LexerStyles")) {
251 readLexerStyles(xml);
252 }
253 else if (xml.name() == QStringLiteral("GlobalStyles")) {
254 readGlobalStyles(xml);
255 }
256 else {
257 xml.skipCurrentElement();
258 }
259 }
260 if (xml.hasError()) {
261 qWarning("%s", qUtf8Printable(xml.errorString()));
262 }
263 }
264}
265
266void NppImporter::readConfigModel(const QString &filePath)
267{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected