diff options
Diffstat (limited to 'examples/xmlpatterns/schema/mainwindow.cpp')
-rw-r--r-- | examples/xmlpatterns/schema/mainwindow.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/examples/xmlpatterns/schema/mainwindow.cpp b/examples/xmlpatterns/schema/mainwindow.cpp index aa2e1b06..22628b14 100644 --- a/examples/xmlpatterns/schema/mainwindow.cpp +++ b/examples/xmlpatterns/schema/mainwindow.cpp @@ -47,43 +47,43 @@ //! [4] class MessageHandler : public QAbstractMessageHandler { - public: - MessageHandler() - : QAbstractMessageHandler(0) - { - } - - QString statusMessage() const - { - return m_description; - } - - int line() const - { - return m_sourceLocation.line(); - } - - int column() const - { - return m_sourceLocation.column(); - } - - protected: - virtual void handleMessage(QtMsgType type, const QString &description, - const QUrl &identifier, const QSourceLocation &sourceLocation) - { - Q_UNUSED(type); - Q_UNUSED(identifier); - - m_messageType = type; - m_description = description; - m_sourceLocation = sourceLocation; - } - - private: - QtMsgType m_messageType; - QString m_description; - QSourceLocation m_sourceLocation; +public: + MessageHandler() + : QAbstractMessageHandler(0) + { + } + + QString statusMessage() const + { + return m_description; + } + + int line() const + { + return m_sourceLocation.line(); + } + + int column() const + { + return m_sourceLocation.column(); + } + +protected: + virtual void handleMessage(QtMsgType type, const QString &description, + const QUrl &identifier, const QSourceLocation &sourceLocation) + { + Q_UNUSED(type); + Q_UNUSED(identifier); + + m_messageType = type; + m_description = description; + m_sourceLocation = sourceLocation; + } + +private: + QtMsgType m_messageType; + QString m_description; + QSourceLocation m_sourceLocation; }; //! [4] |