From e785a1b6048609d9cab83b44fd607ef5b1a65e7b Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Fri, 4 Mar 2016 00:14:53 +1000 Subject: [PATCH] Remove ugly lines over MinutesAtPressure graph --- sleepyhead/Graphs/MinutesAtPressure.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sleepyhead/Graphs/MinutesAtPressure.cpp b/sleepyhead/Graphs/MinutesAtPressure.cpp index 1d28bb0f..9749fa53 100644 --- a/sleepyhead/Graphs/MinutesAtPressure.cpp +++ b/sleepyhead/Graphs/MinutesAtPressure.cpp @@ -286,8 +286,7 @@ void MinutesAtPressure::paint(QPainter &painter, gGraph &graph, const QRegion &r row++; } - - +#ifdef UGLYLINES float maxmins = float(maxtime) / 60.0; 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); // graph.renderText(txt, rect.left(), rect.top()-10);