diff --git a/sleepyhead/daily.cpp b/sleepyhead/daily.cpp index 1fdab7e8..29f5d82b 100644 --- a/sleepyhead/daily.cpp +++ b/sleepyhead/daily.cpp @@ -1233,7 +1233,6 @@ void Daily::Load(QDate date) .arg((*s)->session()) .arg(tooltip) .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")) @@ -1250,7 +1249,7 @@ void Daily::Load(QDate date) int h=len/3600; int m=(len/60) % 60; int s1=len % 60; - tooltip=oxi->machine->GetClass()+" "+STR_TR_Oximeter+" "+QString().sprintf("%2ih, %2im, %2is",h,m,s1); + tooltip=oxi->machine->GetClass()+QString(":#%1").arg((*s)->session(),8,10,QChar('0')); Session *sess=*s; if (!sess->settings.contains(SESSION_ENABLED)) { @@ -1260,10 +1259,10 @@ void Daily::Load(QDate date) QHash::iterator i=(*s)->settings.find(CPAP_BrokenWaveform); corrupted_waveform=(i!=(*s)->settings.end()) && i.value().toBool(); - html+=QString("%3%2%5%6%7") + html+=QString("%5%6%7%3%2") .arg((*s)->session()) .arg(tooltip) - .arg((*s)->session(),8,10,QChar('0')) + .arg(QString("%1h %2m %3s").arg(h,2,10,QChar('0')).arg(m,2,10,QChar('0')).arg(s1,2,10,QChar('0'))) .arg((b ? "on" : "off")) .arg(fd.date().toString(Qt::SystemLocaleShortDate)) .arg(fd.toString("HH:mm")) @@ -1279,7 +1278,7 @@ void Daily::Load(QDate date) int h=len/3600; int m=(len/60) % 60; int s1=len % 60; - tooltip=stage->machine->GetClass()+" "+tr("Sleep Stage")+" "+QString().sprintf("%2ih, %2im, %2is",h,m,s1); + tooltip=stage->machine->GetClass()+QString(":#%1").arg((*s)->session(),8,10,QChar('0')); Session *sess=*s; if (!sess->settings.contains(SESSION_ENABLED)) { @@ -1289,16 +1288,14 @@ void Daily::Load(QDate date) QHash::iterator i=(*s)->settings.find(CPAP_BrokenWaveform); corrupted_waveform=(i!=(*s)->settings.end()) && i.value().toBool(); - html+=QString("%3%2%5%6%7") + html+=QString("%5%6%7%3%2") .arg((*s)->session()) .arg(tooltip) - .arg((*s)->session(),8,10,QChar('0')) + .arg(QString("%1h %2m %3s").arg(h,2,10,QChar('0')).arg(m,2,10,QChar('0')).arg(s1,2,10,QChar('0'))) .arg((b ? "on" : "off")) .arg(fd.date().toString(Qt::SystemLocaleShortDate)) .arg(fd.toString("HH:mm")) .arg(ld.toString("HH:mm")); - //tmp.sprintf(("%08i"+fd.date().toString(Qt::SystemLocaleShortDate)+""+fd.toString("HH:mm ")+""+ld.toString("HH:mm")+"").toLatin1(),(*s)->session(),(*s)->session()); - //html+=tmp; } } if (corrupted_waveform) {