diff --git a/kmymoney/reports/reportcharttest.cpp b/kmymoney/reports/reportcharttest.cpp index 76af0a698..1dd94649e 100644 --- a/kmymoney/reports/reportcharttest.cpp +++ b/kmymoney/reports/reportcharttest.cpp @@ -1,32 +1,48 @@ +/*************************************************************************** + reportcharttest.cpp + ------------------- + copyright : (C) 2017 by Ralf Habacker + email : ralf.habacker@freenet.de + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + #include #include #include #include using namespace KDChart; int main( int argc, char** argv ) { QApplication app( argc, argv ); Widget widget; widget.resize( 600, 600 ); QVector< double > vec0, vec1, vec2; vec0 << 5 << 1 << 3 << 4 << 1; vec1 << 3 << 6 << 2 << 4 << 8; vec2 << 0 << 7 << 1 << 2 << 1; widget.setDataset( 0, vec0, "vec0" ); widget.setDataset( 1, vec1, "vec1" ); widget.setDataset( 2, vec2, "vec2" ); CartesianAxis *xAxis = new CartesianAxis( widget.lineDiagram() ); CartesianAxis *yAxis = new CartesianAxis (widget.lineDiagram() ); xAxis->setPosition ( CartesianAxis::Bottom ); yAxis->setPosition ( CartesianAxis::Left ); xAxis->setTitleText ( "Abscissa bottom position" ); yAxis->setTitleText ( "Ordinate left position" ); widget.lineDiagram()->addAxis( xAxis ); widget.lineDiagram()->addAxis( yAxis ); widget.show(); return app.exec(); }