Skip to content

Commit

Permalink
gps list
Browse files Browse the repository at this point in the history
  • Loading branch information
ic005k committed Feb 16, 2025
1 parent 1250ff2 commit c64c7e5
Show file tree
Hide file tree
Showing 5 changed files with 260 additions and 249 deletions.
4 changes: 4 additions & 0 deletions src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ void MainWindow::importDataDone() {
QCoreApplication::processEvents(QEventLoop::AllEvents, 100);

on_tabWidget_currentChanged(tabData->currentIndex());

m_Steps->loadGpsList(QDate::currentDate().year(),
QDate::currentDate().month());
m_Steps->curMonthTotal();
}

closeProgress();
Expand Down
11 changes: 7 additions & 4 deletions src/Steps/Steps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -722,8 +722,11 @@ void Steps::curMonthTotal() {
ycount = ycount + mcount;
}

mw_one->ui->lblMonthTotal->setText(stry + ": " + QString::number(yt) +
" km " + QString::number(ycount) + "\n" +
strm + ": " + QString::number(t) +
" km " + QString::number(curCount));
double m_td = Reg.value("/Steps/TotalDistance", 0).toDouble();

mw_one->ui->lblMonthTotal->setText(
stry + ": " + QString::number(yt) + " km " + QString::number(ycount) +
"\n" + strm + ": " + QString::number(t) + " km " +
QString::number(curCount) + "\n" + tr("All Total") + ": " +
QString::number(m_td) + " km");
}
Binary file modified src/cn.qm
Binary file not shown.
Loading

0 comments on commit c64c7e5

Please sign in to comment.