Commit 96187594 authored by Jaroslaw Kobus's avatar Jaroslaw Kobus

Fix error messages

Change-Id: I88b72925c15e7bc70106cf5f8d9c21f558f8c918
Reviewed-by: Alessandro Portale's avatarAlessandro Portale <alessandro.portale@qt.io>
parent fc69e4ef
......@@ -262,16 +262,16 @@ void ScxmlDocument::initErrorMessage(const QXmlStreamReader &xml, QIODevice *io)
QString errorString;
switch (xml.error()) {
case QXmlStreamReader::Error::UnexpectedElementError:
errorString = tr("UnexpectedElementError");
errorString = tr("Unexpected element");
break;
case QXmlStreamReader::Error::NotWellFormedError:
errorString = tr("NotWellFormedError");
errorString = tr("Not well formed");
break;
case QXmlStreamReader::Error::PrematureEndOfDocumentError:
errorString = tr("PrematureEndOfDocumentError");
errorString = tr("Premature end of document");
break;
case QXmlStreamReader::Error::CustomError:
errorString = tr("CustomError");
errorString = tr("Custom error");
break;
default:
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment