diff --git a/mainwindow.cpp b/mainwindow.cpp index 64826b5e..3191d9a1 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -821,8 +821,8 @@ void MainWindow::on_summaryButton_clicked() QList AHI; - QDate bestAHIdate, worstAHIdate; - EventDataType bestAHI=999.0, worstAHI=0; + //QDate bestAHIdate, worstAHIdate; + //EventDataType bestAHI=999.0, worstAHI=0; if (cpapdays>0) { QDate first,last=lastcpap; CPAPMode mode,cmode=MODE_UNKNOWN; @@ -966,7 +966,7 @@ void MainWindow::on_summaryButton_clicked() int z=numdays/2; if (z>4) z=4; - recbox+=QString("%1").arg(tr("Best %1").arg(ahitxt)); + recbox+=QString("%1").arg(tr("Best %1").arg(ahitxt)); for (int i=0;i "); - recbox+=QString("%1").arg(tr("Worst %1").arg(ahitxt)); + recbox+=QString("%1").arg(tr("Worst %1").arg(ahitxt)); for (int i=0;i%2%3") @@ -1017,19 +1017,20 @@ void MainWindow::on_summaryButton_clicked() } - recbox+=QString("%3") + recbox+=QString("") + .arg(tr("Best RX Setting")); + recbox+=QString("") .arg(tmpRX[ls]->first.toString(Qt::ISODate)) .arg(tmpRX[ls]->last.toString(Qt::ISODate)) - .arg(tr("Best RX Setting")); - recbox+=QString("").arg(ahitxt).arg(tmpRX[ls]->ahi,0,'f',decimals); - recbox+=QString("").arg(tr("Mode")).arg(modestr); - recbox+=QString(""; + .arg(tmpRX[ls]->first.toString(Qt::SystemLocaleShortDate)) + .arg(tmpRX[ls]->last.toString(Qt::SystemLocaleShortDate)); + recbox+=QString("").arg(ahitxt).arg(tmpRX[ls]->ahi,0,'f',decimals); + recbox+=QString("").arg(tr("Mode")).arg(modestr); + recbox+=QString("").arg(minstr).arg(tmpRX[ls]->min,0,'f',1).arg(STR_UNIT_CMH2O); + if (!maxstr.isEmpty()) recbox+=QString("").arg(maxstr).arg(tmpRX[ls]->max,0,'f',1).arg(STR_UNIT_CMH2O); + if (!maxhistr.isEmpty()) recbox+=QString("").arg(maxhistr).arg(tmpRX[ls]->maxhi,0,'f',1).arg(STR_UNIT_CMH2O); + recbox+="
%3
Start
End
%3
%4
%1: %2
%1: %2
%1: %2").arg(minstr).arg(tmpRX[ls]->min,0,'f',1); - if (!maxstr.isEmpty()) recbox+=QString(" %1: %2").arg(maxstr).arg(tmpRX[ls]->max,0,'f',1); - if (!maxhistr.isEmpty()) recbox+=QString(" %1: %2").arg(maxhistr).arg(tmpRX[0]->maxhi,0,'f',1); - recbox+="
%1%2
%1%2
%1%2%3
%1%2%3
%1%2%3
"; - recbox+=QString("%1: %2").arg(tr("Start")).arg(tmpRX[ls]->first.toString(Qt::SystemLocaleShortDate)); - recbox+=QString("%1: %2").arg(tr("End")).arg(tmpRX[ls]->last.toString(Qt::SystemLocaleShortDate)); recbox+=QString(" "); mode=(CPAPMode)(int)PROFILE.calcSettingsMax(CPAP_Mode,MT_CPAP,tmpRX[0]->first,tmpRX[0]->first); @@ -1044,7 +1045,7 @@ void MainWindow::on_summaryButton_clicked() } else if (mode%3") + recbox+=QString("") + .arg(tr("Worst RX Setting")); + recbox+=QString("") .arg(tmpRX[0]->first.toString(Qt::ISODate)) .arg(tmpRX[0]->last.toString(Qt::ISODate)) - .arg(tr("Worst RX Setting")); - recbox+=QString("").arg(ahitxt).arg(tmpRX[0]->ahi,0,'f',decimals); - recbox+=QString("").arg(tr("Mode")).arg(modestr); - recbox+=QString(""; + .arg(tmpRX[0]->first.toString(Qt::SystemLocaleShortDate)) + .arg(tmpRX[0]->last.toString(Qt::SystemLocaleShortDate)); + recbox+=QString("").arg(ahitxt).arg(tmpRX[0]->ahi,0,'f',decimals); + recbox+=QString("").arg(tr("Mode")).arg(modestr); + recbox+=QString("").arg(minstr).arg(tmpRX[0]->min,0,'f',1).arg(STR_UNIT_CMH2O); + if (!maxstr.isEmpty()) recbox+=QString("").arg(maxstr).arg(tmpRX[0]->max,0,'f',1).arg(STR_UNIT_CMH2O); + if (!maxhistr.isEmpty()) recbox+=QString("").arg(maxhistr).arg(tmpRX[0]->maxhi,0,'f',1).arg(STR_UNIT_CMH2O); + recbox+="
%3
Start
End
%3
%4
%1: %2
%1: %2
%1: %2").arg(minstr).arg(tmpRX[0]->min,0,'f',1); - if (!maxstr.isEmpty()) recbox+=QString(" %1: %2").arg(maxstr).arg(tmpRX[0]->max,0,'f',1); - if (!maxhistr.isEmpty()) recbox+=QString(" %1: %2").arg(maxhistr).arg(tmpRX[0]->maxhi,0,'f',1); - recbox+="
%1%2
%1%2
%1%2%3
%1%2%3
%1%2%3
"; - recbox+=QString("%1: %2").arg(tr("Start")).arg(tmpRX[0]->first.toString(Qt::SystemLocaleShortDate)); - recbox+=QString("%1: %2").arg(tr("End")).arg(tmpRX[0]->last.toString(Qt::SystemLocaleShortDate)); + //recbox+=QString("%1: %2").arg(tr("Start")).arg(tmpRX[0]->first.toString(Qt::SystemLocaleShortDate)); + //recbox+=QString("%1: %2").arg(tr("End")).arg(tmpRX[0]->last.toString(Qt::SystemLocaleShortDate)); } recbox+=""; recbox+="";