Remove ugly lines over MinutesAtPressure graph

This commit is contained in:
Mark Watkins 2016-03-04 00:14:53 +10:00
parent 4dcf9845f7
commit e785a1b604

View File

@ -286,8 +286,7 @@ void MinutesAtPressure::paint(QPainter &painter, gGraph &graph, const QRegion &r
row++; row++;
} }
#ifdef UGLYLINES
float maxmins = float(maxtime) / 60.0; float maxmins = float(maxtime) / 60.0;
float ymult = height / maxmins; float ymult = height / maxmins;
@ -371,6 +370,8 @@ void MinutesAtPressure::paint(QPainter &painter, gGraph &graph, const QRegion &r
} }
} }
} }
#endif
// QString txt=QString("%1 %2").arg(maxmins).arg(float(maxevents * 60.0) / maxmins); // QString txt=QString("%1 %2").arg(maxmins).arg(float(maxevents * 60.0) / maxmins);
// graph.renderText(txt, rect.left(), rect.top()-10); // graph.renderText(txt, rect.left(), rect.top()-10);