mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Fix html glitch in Daily sessions list
This commit is contained in:
parent
53f893fb99
commit
1128263c08
@ -815,7 +815,7 @@ QString Daily::getSessionInformation(Day * cpap, Day * oxi, Day * stage)
|
|||||||
sess->settings[SESSION_ENABLED]=true;
|
sess->settings[SESSION_ENABLED]=true;
|
||||||
}
|
}
|
||||||
bool b=sess->settings[SESSION_ENABLED].toBool();
|
bool b=sess->settings[SESSION_ENABLED].toBool();
|
||||||
html+=QString("<tr onClick=\"document.location.href = '"+type+"=%1';\">"
|
html+=QString("<tr>"
|
||||||
"<td width=26><a href='toggle"+type+"session=%1'>"
|
"<td width=26><a href='toggle"+type+"session=%1'>"
|
||||||
"<img src='qrc:/icons/session-%4.png' width=24px></a></td><td align=center>%5</td><td align=center>%6</td><td align=center>%7</td><td align=left><a class=info href='"+type+"=%1'>%3<span>%2</span></a></td></tr>")
|
"<img src='qrc:/icons/session-%4.png' width=24px></a></td><td align=center>%5</td><td align=center>%6</td><td align=center>%7</td><td align=left><a class=info href='"+type+"=%1'>%3<span>%2</span></a></td></tr>")
|
||||||
.arg((*s)->session())
|
.arg((*s)->session())
|
||||||
|
@ -895,14 +895,13 @@ QString Summary::GenerateHTML()
|
|||||||
} else if (mode>MODE_CPAP) {
|
} else if (mode>MODE_CPAP) {
|
||||||
extratxt+=QString("<td align=left>APAP %1 - %2</td><td align=left></td>")
|
extratxt+=QString("<td align=left>APAP %1 - %2</td><td align=left></td>")
|
||||||
.arg(rx.min,4,'f',1)
|
.arg(rx.min,4,'f',1)
|
||||||
.arg(rx.max,4,'f',1)
|
.arg(rx.max,4,'f',1);
|
||||||
.arg(STR_UNIT_CMH2O);
|
|
||||||
tooltip=QString("%1 %2% ").arg(machstr).arg(percentile*100.0)+STR_TR_Pressure+
|
tooltip=QString("%1 %2% ").arg(machstr).arg(percentile*100.0)+STR_TR_Pressure+
|
||||||
QString("=%2").arg(rx.per1,0,'f',decimals);
|
QString("=%2").arg(rx.per1,0,'f',decimals);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (cpapmode>MODE_CPAP) {
|
if (cpapmode>MODE_CPAP) {
|
||||||
extratxt+=QString("<td colspan=2>CPAP %1</td>").arg(rx.min,4,'f',1).arg(STR_UNIT_CMH2O);
|
extratxt+=QString("<td colspan=2>CPAP %1</td>").arg(rx.min,4,'f',1);
|
||||||
tooltip=QString("%1").arg(machstr);
|
tooltip=QString("%1").arg(machstr);
|
||||||
} else {
|
} else {
|
||||||
extratxt+="";
|
extratxt+="";
|
||||||
|
Loading…
Reference in New Issue
Block a user