| 239 | } |
| 240 | |
| 241 | void 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 | |
| 266 | void NppImporter::readConfigModel(const QString &filePath) |
| 267 | { |
nothing calls this directly
no outgoing calls
no test coverage detected