Strip HTML from XSD Validator error message.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-03-18 18:07:05 +02:00
parent b146b72963
commit 3a630b1ce3

View File

@ -56,6 +56,7 @@
#include <QSourceLocation>
#include <QStringList>
#include <QTemporaryFile>
#include <QTextDocument>
#include <QTextStream>
#include <QUrl>
#include <QVector>
@ -67,8 +68,13 @@
class MessageHandler : public QAbstractMessageHandler
{
public:
MessageHandler() : QAbstractMessageHandler(), m_messageType(QtMsgType()), m_description(QString()),
m_sourceLocation(QSourceLocation()){}
MessageHandler()
: QAbstractMessageHandler(),
m_messageType(QtMsgType()),
m_description(),
m_sourceLocation(QSourceLocation())
{}
QString statusMessage() const;
qint64 line() const;
qint64 column() const;
@ -83,9 +89,11 @@ private:
};
//---------------------------------------------------------------------------------------------------------------------
inline QString MessageHandler::statusMessage() const
QString MessageHandler::statusMessage() const
{
return m_description;
QTextDocument doc;
doc.setHtml(m_description);
return doc.toPlainText();
}
//---------------------------------------------------------------------------------------------------------------------