From 1c72f4bb7a3b5115ec8e2bc4dcbd53f2107b4525 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sun, 2 Oct 2011 01:47:35 +1000 Subject: [PATCH] Summary Chart days fix, and placed ToolTip a little higher --- Graphs/gSummaryChart.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Graphs/gSummaryChart.cpp b/Graphs/gSummaryChart.cpp index b16a01c4..3f2ad440 100644 --- a/Graphs/gSummaryChart.cpp +++ b/Graphs/gSummaryChart.cpp @@ -393,7 +393,7 @@ void SummaryChart::paint(gGraph & w,int left, int top, int width, int height) // } }*/ - a+="Days="+QString::number(totalcounts[0],'f',0); + a+="Days="+QString::number(total_days,'f',0); GetTextExtent(a,x,y); px-=30+x; //w.renderText(a,px+24,py+5); @@ -479,11 +479,11 @@ bool SummaryChart::mouseMoveEvent(QMouseEvent *event) } - graph->ToolTip(z,x,y,2200); + graph->ToolTip(z,x,y-10,2200); return true; } else { QString z=dt.toString(Qt::SystemLocaleShortDate)+"\r\nNo Data"; - graph->ToolTip(z,x,y,2200); + graph->ToolTip(z,x,y-10,2200); } } return false;