summaryrefslogtreecommitdiff
path: root/tests/manual/proparser/main.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-07-03 10:08:04 +0200
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-08-01 16:09:33 +0200
commit0af96c128a558eb4618ad2738f0b4d94346f3ca5 (patch)
tree507b60914d94789f5ad2217b589d654dc928f31b /tests/manual/proparser/main.cpp
parent7dd051ecce50bfc6331bcbb809d0fd0faf670d30 (diff)
downloadqt-creator-0af96c128a558eb4618ad2738f0b4d94346f3ca5.tar.gz
revamp message callbacks
instead of having a bazillion different callbacks, have only one with a type parameter. the drain typically multiplexes all into one stream anyway. Change-Id: I963daefc5a266c91334a4cc599570ed26b603d5d Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
Diffstat (limited to 'tests/manual/proparser/main.cpp')
-rw-r--r--tests/manual/proparser/main.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/manual/proparser/main.cpp b/tests/manual/proparser/main.cpp
index c80c3193fc..dd89628a48 100644
--- a/tests/manual/proparser/main.cpp
+++ b/tests/manual/proparser/main.cpp
@@ -53,13 +53,9 @@ static void print(const QString &fileName, int lineNo, const QString &msg)
class EvalHandler : public QMakeHandler {
public:
- virtual void parseError(const QString &fileName, int lineNo, const QString &msg)
+ virtual void message(int /* type */, const QString &msg, const QString &fileName, int lineNo)
{ print(fileName, lineNo, msg); }
- virtual void configError(const QString &msg)
- { qWarning("%s", qPrintable(msg)); }
- virtual void evalError(const QString &fileName, int lineNo, const QString &msg)
- { print(fileName, lineNo, msg); }
virtual void fileMessage(const QString &msg)
{ qWarning("%s", qPrintable(msg)); }