Call the cylinder working pressure "starting pressure" in planner

Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Robert C. Helling 2017-02-26 13:34:17 +01:00 committed by Dirk Hohndel
parent 01874e158f
commit 0eb42b35b8
2 changed files with 10 additions and 0 deletions

View file

@ -18,6 +18,15 @@ CylindersModel::CylindersModel(QObject *parent) :
} }
QVariant CylindersModel::headerData(int section, Qt::Orientation orientation, int role) const
{
if (role == Qt::DisplayRole && in_planner() && section == WORKINGPRESS)
return tr("Start press.");
else
return CleanerTableModel::headerData(section, orientation, role);
}
CylindersModel *CylindersModel::instance() CylindersModel *CylindersModel::instance()
{ {

View file

@ -40,6 +40,7 @@ public:
void updateDecoDepths(pressure_t olddecopo2); void updateDecoDepths(pressure_t olddecopo2);
cylinder_t *cylinderAt(const QModelIndex &index); cylinder_t *cylinderAt(const QModelIndex &index);
bool changed; bool changed;
virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const;
public public
slots: slots: