Code: Select all
--- convergenceview.h.orig 2013-09-13 20:10:09.539590093 +0100
+++ convergenceview.h 2013-09-16 11:08:27.189942680 +0100
@@ -112,7 +112,7 @@
QwtPlot *plot;
QwtPlotGrid *grid;
QwtLegend *legend;
- QwtLog10ScaleEngine *scaleEngine;
+ QwtLogScaleEngine *scaleEngine;
QHash<QString, Curve*> curveList;
QPen *pen;
--- convergenceview.cpp.orig 2013-09-13 20:10:09.539590093 +0100
+++ convergenceview.cpp 2013-09-16 11:16:34.029939632 +0100
@@ -108,8 +108,8 @@
// grid
grid = new QwtPlotGrid;
grid->enableXMin(true);
- grid->setMajPen(QPen(Qt::black, 0, Qt::DotLine));
- grid->setMinPen(QPen(Qt::gray, 0 , Qt::DotLine));
+ grid->setMajorPen(QPen(Qt::black, 0, Qt::DotLine));
+ grid->setMinorPen(QPen(Qt::gray, 0 , Qt::DotLine));
grid->attach(plot);
// axis
@@ -121,7 +121,7 @@
plot->setAxisMaxMinor(QwtPlot::yLeft, 10);
// scale engine
- scaleEngine = new QwtLog10ScaleEngine;
+ scaleEngine = new QwtLogScaleEngine(10);
plot->setAxisScaleEngine(QwtPlot::yLeft, scaleEngine);
// default pen