Skip to content

Commit 32aee3d

Browse files
committedApr 17, 2016
Send dart measurement output to stdout with no prefix
Or to put it differently, make the output usable for CDash also with Qt5. Qt5 prefixes debug output with QDEBUG and adds quotes before and after the message. <DartMeasurement>...</DartMeasurement> messages are expected to be put at the beginning and end of a line without pre- or suffix by CDash. We now send it to stdout without any modifications.
1 parent 972f13e commit 32aee3d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/core/qgsdartmeasurement.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#include "qgsdartmeasurement.h"
1717

18-
#include <QDebug>
18+
#include <QTextStream>
1919

2020
QgsDartMeasurement::QgsDartMeasurement( const QString& name, Type type, const QString& value )
2121
: mName( name )
@@ -42,7 +42,8 @@ const QString QgsDartMeasurement::toString() const
4242

4343
void QgsDartMeasurement::send() const
4444
{
45-
qDebug() << toString() + '\n';
45+
QTextStream out( stdout );
46+
out << toString() << endl;
4647
}
4748

4849
const QString QgsDartMeasurement::typeToString( QgsDartMeasurement::Type type )

1 commit comments

Comments
 (1)

nyalldawson commented on Apr 17, 2016

@nyalldawson
Collaborator

@m-kuhn nice!

Please sign in to comment.