added ui tweaks in traing mode for shell track
This commit is contained in:
18
training.cpp
18
training.cpp
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user