Summary ToolTip improvements

This commit is contained in:
Mark Watkins 2011-09-13 14:45:40 +10:00
parent 845fd13159
commit b82ab18ae6

View File

@ -392,14 +392,14 @@ bool SummaryChart::mouseMoveEvent(QMouseEvent *event)
int h=t/3600; int h=t/3600;
int m=(t / 60) % 60; int m=(t / 60) % 60;
int s=t % 60; int s=t % 60;
val.sprintf("%02i:%02i:%02i",h,m,s); val.sprintf("%02i:%02i",h,m);
} else val=QString::number(d.value()[0]); } else val=QString::number(d.value()[0],'f',2);
} else { } else {
val=QString::number(d.value()[1]); val=QString::number(d.value()[1],'f',2);
} }
QString z=dt.date().toString(Qt::SystemLocaleShortDate)+"\n"+m_label+"="+val;//+"\nAHI="+QString::number(day->cph(CPAP_AHI)); QString z=dt.date().toString(Qt::SystemLocaleShortDate)+"\n"+m_label+"="+val;//+"\nAHI="+QString::number(day->cph(CPAP_AHI));
graph->ToolTip(z,x,y,1500); graph->ToolTip(z,x,y,2200);
return true; return true;
} }
} }