Mercurial > hg > svgui
comparison widgets/TipDialog.h @ 1414:fa986b91d77f
Merge from branch fix-static-analysis
author | Chris Cannam |
---|---|
date | Wed, 09 Jan 2019 15:24:51 +0000 |
parents | 05d614f6e46d |
children |
comparison
equal
deleted
inserted
replaced
1413:0930a27ebea2 | 1414:fa986b91d77f |
---|---|
11 published by the Free Software Foundation; either version 2 of the | 11 published by the Free Software Foundation; either version 2 of the |
12 License, or (at your option) any later version. See the file | 12 License, or (at your option) any later version. See the file |
13 COPYING included with this distribution for more information. | 13 COPYING included with this distribution for more information. |
14 */ | 14 */ |
15 | 15 |
16 #ifndef _TIP_DIALOG_H_ | 16 #ifndef SV_TIP_DIALOG_H |
17 #define _TIP_DIALOG_H_ | 17 #define SV_TIP_DIALOG_H |
18 | 18 |
19 #include <QDialog> | 19 #include <QDialog> |
20 #include <QString> | 20 #include <QString> |
21 #include <QXmlDefaultHandler> | 21 #include <QXmlDefaultHandler> |
22 | 22 |
57 TipFileParser(TipDialog *dialog); | 57 TipFileParser(TipDialog *dialog); |
58 virtual ~TipFileParser(); | 58 virtual ~TipFileParser(); |
59 | 59 |
60 void parse(QXmlInputSource &source); | 60 void parse(QXmlInputSource &source); |
61 | 61 |
62 virtual bool startElement(const QString &namespaceURI, | 62 bool startElement(const QString &namespaceURI, |
63 const QString &localName, | 63 const QString &localName, |
64 const QString &qName, | 64 const QString &qName, |
65 const QXmlAttributes& atts); | 65 const QXmlAttributes& atts) override; |
66 | 66 |
67 virtual bool characters(const QString &); | 67 bool characters(const QString &) override; |
68 | 68 |
69 virtual bool endElement(const QString &namespaceURI, | 69 bool endElement(const QString &namespaceURI, |
70 const QString &localName, | 70 const QString &localName, |
71 const QString &qName); | 71 const QString &qName) override; |
72 | 72 |
73 bool error(const QXmlParseException &exception); | 73 bool error(const QXmlParseException &exception) override; |
74 bool fatalError(const QXmlParseException &exception); | 74 bool fatalError(const QXmlParseException &exception) override; |
75 | 75 |
76 protected: | 76 protected: |
77 TipDialog *m_dialog; | 77 TipDialog *m_dialog; |
78 | 78 |
79 bool m_inTip; | 79 bool m_inTip; |