diff options
-rw-r--r-- | src/runtime/q3dsuipparser.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/runtime/q3dsuipparser.cpp b/src/runtime/q3dsuipparser.cpp index 5f4b74b..b791fba 100644 --- a/src/runtime/q3dsuipparser.cpp +++ b/src/runtime/q3dsuipparser.cpp @@ -110,10 +110,13 @@ Q3DSUipPresentation *Q3DSUipParser::createPresentation(const QString &presentati QXmlStreamReader *r = reader(); if (r->readNextStartElement()) { - if (r->name() == QStringLiteral("UIP") && r->attributes().value(QLatin1String("version")) == QStringLiteral("3")) + if (r->name() == QStringLiteral("UIP") + && (r->attributes().value(QLatin1String("version")) == QStringLiteral("4") + || r->attributes().value(QLatin1String("version")) == QStringLiteral("3"))) { parseUIP(); - else - r->raiseError(QObject::tr("Not a UIP version 3 document.")); + } else { + r->raiseError(QObject::tr("UIP version is too low, and is no longer supported.")); + } } if (r->hasError()) { |