Skip to content
Permalink
Browse files

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.
  • Loading branch information
m-kuhn committed Apr 17, 2016
1 parent 972f13e commit 32aee3d173f75d968cbf7df830959b0ae5cef5cb
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/core/qgsdartmeasurement.cpp
@@ -15,7 +15,7 @@

#include "qgsdartmeasurement.h"

#include <QDebug>
#include <QTextStream>

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

void QgsDartMeasurement::send() const
{
qDebug() << toString() + '\n';
QTextStream out( stdout );
out << toString() << endl;
}

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

1 comment on commit 32aee3d

@nyalldawson

This comment has been minimized.

Copy link
Collaborator

@nyalldawson nyalldawson commented on 32aee3d Apr 17, 2016

@m-kuhn nice!

Please sign in to comment.
You can’t perform that action at this time.