added ui tweaks in traing mode for shell track

This commit is contained in:
2017-12-26 11:35:19 +01:00
parent 95b3471f49
commit 8fea1a1108
6 changed files with 258 additions and 26 deletions

View File

@@ -129,6 +129,18 @@ void Training::shellSlot(int time, int sector) {
timeModelShell = new TimeModel(VecShell, minSecTime, this);
this->ui->lWShellTime->setModel(timeModelShell);
this->ui->lbridgeShellTop->setText(QString::number(
(double)QVectorHelper::getMinSec1(VecShell) / 1000));
theoreticalMinShell = 9999;
theoreticalMinShell = QVectorHelper::getMinSec1(VecShell) +
QVectorHelper::getMinSec2(VecShell) +
QVectorHelper::getMinSec3(VecShell);
deltaShell =
QVectorHelper::getMin(VecShell) - theoreticalMinShell;
this->ui->lDeltaTopTimeShell->setText(
QString::number((double)deltaShell / 1000));
break;
case 2:
if (VecShell.size() > 0) {
@@ -141,6 +153,9 @@ void Training::shellSlot(int time, int sector) {
this->ui->lWShellTime->setModel(timeModelShell);
}
}
this->ui->lbridgeShellTop->setText(QString::number(
(double)QVectorHelper::getMinSec2(VecShell) / 1000));
break;
case 3:
if (VecShell.size() > 0) {
@@ -170,6 +185,9 @@ void Training::shellSlot(int time, int sector) {
1000));
}
this->ui->lbridgeShellTop->setText(QString::number(
(double)QVectorHelper::getMinSec3(VecShell) / 1000));
break;
}
ui->lWShellTime->scrollToBottom();