diff --git a/Graphs/gGraphView.cpp b/Graphs/gGraphView.cpp index 6c6512d9..5b8c1cc7 100644 --- a/Graphs/gGraphView.cpp +++ b/Graphs/gGraphView.cpp @@ -2306,7 +2306,7 @@ void gGraphView::mouseMoveEvent(QMouseEvent * event) QMouseEvent e(event->type(),p,event->button(),event->buttons(),event->modifiers()); m_graphs[i]->mouseMoveEvent(&e); - if (x<=titleWidth+(gYAxis::Margin-5)) { + if (!m_button_down && (x<=titleWidth+(gYAxis::Margin-5))) { //qDebug() << "Hovering over" << m_graphs[i]->title(); if (m_graphsbytitle["Event Flags"]==m_graphs[i]) { QVector & layers=m_graphs[i]->layers(); diff --git a/Graphs/gSummaryChart.cpp b/Graphs/gSummaryChart.cpp index 67ea29c5..810f5ac4 100644 --- a/Graphs/gSummaryChart.cpp +++ b/Graphs/gSummaryChart.cpp @@ -54,6 +54,10 @@ void SummaryChart::SetDay(Day * nullday) EventDataType tmp,tmp2,total; ChannelID code; + m_goodcodes.resize(m_codes.size()); + for (int i=0;im_maxy) m_maxy=tmp; - m_goodcodes[code]=true; + m_goodcodes[j]=true; fnd=true; break; } @@ -157,47 +161,38 @@ void SummaryChart::SetDay(Day * nullday) if (totalm_maxy) m_maxy=total; } - m_empty=false; + //m_empty=false; } else m_hours[dn]=0; } } if (m_graphtype!=GT_SESSIONS) for (int j=0;j >::iterator d=PROFILE.daylist.begin();d!=PROFILE.daylist.end();d++) { - tt=QDateTime(d.key(),QTime(0,0,0),Qt::UTC).toTime_t(); - dn=tt/86400; - for (int i=0;imachine_type()!=m_machinetype) continue; - if (!m_values[dn].contains(j+1)) { - m_days[dn]=day; - m_values[dn][j+1]=0; - if (!m_values[dn].contains(0)) { - m_values[dn][0]=0; - } - if (0m_maxy) m_maxy=0; - m_hours[dn]=day->hours(); + for (QMap >::iterator d=PROFILE.daylist.begin();d!=PROFILE.daylist.end();d++) { + tt=QDateTime(d.key(),QTime(0,0,0),Qt::UTC).toTime_t(); + dn=tt/86400; + for (int i=0;imachine_type()!=m_machinetype) continue; + if (!m_values[dn].contains(j+1)) { + m_days[dn]=day; + m_values[dn][j+1]=0; + if (!m_values[dn].contains(0)) { + m_values[dn][0]=0; } - break; + if (0m_maxy) m_maxy=0; + m_hours[dn]=day->hours(); } - } - //m_empty=false; + break; + } } } m_empty=true; for (int i=0;i m_colors; QVector m_codes; - QHash m_goodcodes; + QVector m_goodcodes; QVector m_zeros; QVector m_type; QHash > m_values; diff --git a/overview.cpp b/overview.cpp index 72e19c91..35a1c917 100644 --- a/overview.cpp +++ b/overview.cpp @@ -164,10 +164,10 @@ Overview::Overview(QWidget *parent,gGraphView * shared) : set=new SummaryChart("",GT_LINE); //set->addSlice("SysOneResistSet",QColor("grey"),ST_SETAVG); - set->addSlice("HumidSet",QColor("blue"),ST_SETWAVG,false); - set->addSlice("FlexSet",QColor("red"),ST_SETWAVG,false); - set->addSlice("EPR",QColor("red"),ST_SETWAVG,false); - set->addSlice("SmartFlex",QColor("red"),ST_SETWAVG,false); + set->addSlice("HumidSet",QColor("blue"),ST_SETWAVG,true); + set->addSlice("FlexSet",QColor("red"),ST_SETWAVG,true); + set->addSlice("EPR",QColor("green"),ST_SETWAVG,true); + set->addSlice("SmartFlex",QColor("purple"),ST_SETWAVG,true); SET->setRecMinY(0); SET->setRecMaxY(5); SET->AddLayer(set);