Changeset 7f7c008 in subsurface


Ignore:
Timestamp:
Jan 16, 2017, 3:30:57 AM (7 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
a8b09f60
Parents:
a8e8d56
Message:

Revert "Show both the nominal and "real" size for an imperial cylinder"

This reverts commit adaeb506b7a1485cab741f12450abeb76e109276.

commit a8e8d56ec016 ("Tweak cylinder equipment tooltips") does a much
better job allowing the user to know the true volume of the cylinder
(given the gas entered) and clutters the UI a lot less.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • qt-models/cylindermodel.cpp

    ra8e8d56 r7f7c008  
    3939        // convert the cylinder size to cuft.
    4040        if (wp.mbar && prefs.units.volume == units::CUFT) {
    41                 double real_value = ml_to_cuft(gas_volume(cyl, wp));
    4241                value = ml_to_cuft(ml) * bar_to_atm(wp.mbar / 1000.0);
    4342                decimals = (value > 20.0) ? 0 : (value > 2.0) ? 1 : 2;
    44                 unit = QString("(%1)%2").arg(real_value, 0, 'f', 0).arg(CylindersModel::tr("cuft"));
     43                unit = CylindersModel::tr("cuft");
    4544        } else {
    4645                value = ml / 1000.0;
Note: See TracChangeset for help on using the changeset viewer.