mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 18:50:44 +00:00
Fix SummaryChart tooltip values
This commit is contained in:
parent
e2c649d6b1
commit
7ebf993f12
@ -379,7 +379,14 @@ bool SummaryChart::mouseMoveEvent(QMouseEvent *event)
|
||||
|
||||
|
||||
QDateTime dt=QDateTime::fromTime_t(hl_day*86400);
|
||||
QString z=dt.date().toString(Qt::SystemLocaleShortDate)+"\n"+m_label+"="+QString::number(d.value()[0],'f',2);;
|
||||
|
||||
EventDataType val;
|
||||
if (m_graphtype==GT_BAR) {
|
||||
val=d.value()[0];
|
||||
} else {
|
||||
val=d.value()[1];
|
||||
}
|
||||
QString z=dt.date().toString(Qt::SystemLocaleShortDate)+"\n"+m_label+"="+QString::number(val,'f',2);;
|
||||
graph->ToolTip(z,x,y,1500);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user