Forgot to call Reset graph layout in overview

This commit is contained in:
Mark Watkins 2014-08-11 16:21:05 +10:00
parent 0579d2cd2a
commit 4b882d1b7c
2 changed files with 2 additions and 2 deletions

View File

@ -1006,8 +1006,7 @@ void gLineChart::paint(QPainter &painter, gGraph &w, const QRegion &region)
float f = float(cnt) / hours; // / (sum / 3600.0);
QString txt = QObject::tr("Duration %1:%2:%3").arg(h,2,10,QChar('0')).arg(m,2,10,QChar('0')).arg(s,2,10,QChar('0')) + " "+
QObject::tr("AHI %1").arg(f,0,'f',2);
painter.setPen(Qt::black);
painter.drawText(left,top-4,txt);
w.renderText(txt,left,top-4);
}
painter.setRenderHint(QPainter::Antialiasing, false);

View File

@ -306,6 +306,7 @@ Overview::Overview(QWidget *parent, gGraphView *shared) :
nll->addSlice(CPAP_LargeLeak, schema::channel[CPAP_LargeLeak].defaultColor(), ST_SPH);
// <--- The code to the previous marker is crap
GraphView->resetLayout();
GraphView->LoadSettings("Overview"); //no trans
AHI->setPinned(false);
ui->rangeCombo->setCurrentIndex(6);