mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 19:20:45 +00:00
Summary ToolTip improvements
This commit is contained in:
parent
845fd13159
commit
b82ab18ae6
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user