On Daily page, show right statistics column as 99.5% or Max, as appropriate.

This commit is contained in:
Guy Scharf 2021-02-22 08:59:44 -07:00
parent 1b727eff76
commit eb4981d3be

View File

@ -1296,7 +1296,7 @@ QString Daily::getStatisticsInfo(Day * day)
.arg(STR_TR_Min) .arg(STR_TR_Min)
.arg(midname) .arg(midname)
.arg(tr("%1%2").arg(percentile*100,0,'f',0).arg(STR_UNIT_Percentage)) .arg(tr("%1%2").arg(percentile*100,0,'f',0).arg(STR_UNIT_Percentage))
.arg(STR_TR_Max); .arg(ST_max == ST_MAX?STR_TR_Max:tr("99.5%"));
ChannelID chans[]={ ChannelID chans[]={
CPAP_Pressure,CPAP_PressureSet,CPAP_EPAP,CPAP_EPAPSet,CPAP_IPAP,CPAP_IPAPSet,CPAP_PS,CPAP_PTB, CPAP_Pressure,CPAP_PressureSet,CPAP_EPAP,CPAP_EPAPSet,CPAP_IPAP,CPAP_IPAPSet,CPAP_PS,CPAP_PTB,
@ -1650,7 +1650,7 @@ void Daily::Load(QDate date)
if (hours>0) { if (hours>0) {
htmlLeftAHI="<table cellspacing=0 cellpadding=0 border=0 width='100%'>\n"; htmlLeftAHI="<table cellspacing=0 cellpadding=0 border=0 width='100%'>\n";
// Is this debugging code left behind? // Show application font, for debugging font issues
// QString appFont = QApplication::font().toString(); // QString appFont = QApplication::font().toString();
// htmlLeftAHI+=QString("<tr><td colspan=5 align=center>%1</td></tr>").arg(appFont); // htmlLeftAHI+=QString("<tr><td colspan=5 align=center>%1</td></tr>").arg(appFont);