Better session duration spacing

This commit is contained in:
Mark Watkins 2013-10-13 18:37:48 +10:00
parent ee5a1dbab4
commit c627733320

View File

@ -1232,7 +1232,8 @@ void Daily::Load(QDate date)
html+=QString("<tr onClick=\"document.location.href = 'cpap=%1';\"><td width=26><a href='togglecpapsession=%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='cpap=%1'>%3<span>%2</span></a></td></tr>")
.arg((*s)->session())
.arg(tooltip)
.arg(QString().sprintf("%ih %im %is",h,m,s1))
.arg(QString("%1h %2m %3s").arg(h,2,10,QChar('0')).arg(m,2,10,QChar('0')).arg(s1,2,10,QChar('0')))
//sprintf("%ih %im %is",h,m,s1))
.arg((b ? "on" : "off"))
.arg(fd.date().toString(Qt::SystemLocaleShortDate))
.arg(fd.toString("HH:mm"))