X-Git-Url: http://git.maemo.org/git/?p=weightgraph;a=blobdiff_plain;f=weightgraph%2Fweightstatsview.cpp;fp=weightgraph%2Fweightstatsview.cpp;h=7ea1e44af4d5ef855c7e757450588570da400c60;hp=cb3505f5f79014dbdcdf46c364ca0ab94309cdac;hb=43cbeb0e6bbc73770d660f84b89610f1aa597f60;hpb=c301b2b2d6f38ed64551d03502c0b315e336759c diff --git a/weightgraph/weightstatsview.cpp b/weightgraph/weightstatsview.cpp index cb3505f..7ea1e44 100644 --- a/weightgraph/weightstatsview.cpp +++ b/weightgraph/weightstatsview.cpp @@ -45,12 +45,12 @@ WeightStatsView::WeightStatsView(WeightDataModel *wdm, QWidget *parent) : changeLayout->addWidget(changeNote, 0, Qt::AlignVCenter); lo->addWidget(changeContainer); - min = new QLabel(container); - lo->addWidget(min); - max = new QLabel(container); lo->addWidget(max); + min = new QLabel(container); + lo->addWidget(min); + updateStats(); } @@ -92,8 +92,8 @@ void WeightStatsView::updateStats() lastNote->setText(""); change->setText("Change: No data"); changeNote->setText(""); - min->setText("Min: No data"); max->setText("Max: No data"); + min->setText("Min: No data"); return; } QString unit = Settings::weightUnit(); @@ -109,6 +109,6 @@ void WeightStatsView::updateStats() .arg(unit)); changeNote->setText(tr("(%1)").arg(dateIntervalString(f.date.daysTo(l.date)))); - min->setText(tr("Min: %1 %2").arg(wdm->minWeight()).arg(unit)); max->setText(tr("Max: %1 %2").arg(wdm->maxWeight()).arg(unit)); + min->setText(tr("Min: %1 %2").arg(wdm->minWeight()).arg(unit)); }