From 1266c750b5d8d09f25aef4137b08ea272cfc76c4 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Tue, 8 Mar 2016 12:31:55 +1000 Subject: [PATCH] Clean up list of events shown in TAP --- sleepyhead/Graphs/MinutesAtPressure.cpp | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/sleepyhead/Graphs/MinutesAtPressure.cpp b/sleepyhead/Graphs/MinutesAtPressure.cpp index 3fea7a95..40bb1dd6 100644 --- a/sleepyhead/Graphs/MinutesAtPressure.cpp +++ b/sleepyhead/Graphs/MinutesAtPressure.cpp @@ -290,7 +290,7 @@ void MinutesAtPressure::paint(QPainter &painter, gGraph &graph, const QRegion &r for (int k=0; k >::iterator OB = events.find(CPAP_Obstructive); @@ -882,7 +882,7 @@ void PressureInfo::finishCalcs() val += CA.value()[i]; events[CPAP_AHI][i] = val; - } + } */ for (int i = 0; i < size; i++) { @@ -912,7 +912,16 @@ void RecalcMAP::run() QHash > events; // Get the channels for specified Channel types - QList chans = day->getSortedMachineChannels(schema::SPAN | schema::FLAG | schema::MINOR_FLAG); + QList chans = day->getSortedMachineChannels(schema::FLAG); + + chans.removeAll(CPAP_VSnore); + chans.removeAll(CPAP_VSnore2); + chans.removeAll(CPAP_FlowLimit); + chans.removeAll(CPAP_RERA); +// for (int i=0;ichannelExists(CPAP_IPAP)) ? CPAP_IPAP : CPAP_Pressure; ChannelID epapcode = (day->channelExists(CPAP_EPAP)) ? CPAP_EPAP : 0;