Fix column headings for divelist

This looks better and is consistent with the Gtk version.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-04-24 16:02:41 -07:00
parent edab566105
commit e156b00f05

View file

@ -462,12 +462,12 @@ QVariant DiveTripModel::headerData(int section, Qt::Orientation orientation, int
break; break;
case DEPTH: case DEPTH:
if (get_units()->length == units::METERS) if (get_units()->length == units::METERS)
ret = tr("Depth (m)"); ret = tr("m");
else else
ret = tr("Depth (ft)"); ret = tr("ft");
break; break;
case DURATION: case DURATION:
ret = tr("Duration (h:mm:ss)"); ret = tr("min");
break; break;
case TEMPERATURE: case TEMPERATURE:
if (get_units()->temperature == units::CELSIUS) if (get_units()->temperature == units::CELSIUS)
@ -477,9 +477,9 @@ QVariant DiveTripModel::headerData(int section, Qt::Orientation orientation, int
break; break;
case TOTALWEIGHT: case TOTALWEIGHT:
if (get_units()->weight == units::KG) if (get_units()->weight == units::KG)
ret = tr("Weight (kg)"); ret = tr("kg");
else else
ret = tr("Weight (lbs)"); ret = tr("lbs");
break; break;
case SUIT: case SUIT:
ret = tr("Suit"); ret = tr("Suit");