| 748 | } |
| 749 | |
| 750 | bool PluginSpecPrivate::readBooleanValue(QXmlStreamReader &reader, const char *key) |
| 751 | { |
| 752 | const QStringRef valueString = reader.attributes().value(QLatin1String(key)); |
| 753 | const bool isOn = valueString.compare(QLatin1String("true"), Qt::CaseInsensitive) == 0; |
| 754 | if (!valueString.isEmpty() && !isOn |
| 755 | && valueString.compare(QLatin1String("false"), Qt::CaseInsensitive) != 0) { |
| 756 | reader.raiseError(msgInvalidFormat(key)); |
| 757 | } |
| 758 | return isOn; |
| 759 | } |
| 760 | |
| 761 | /*! |
| 762 | \internal |
nothing calls this directly
no test coverage detected