From 0eb42b35b832a7e837dafcbc2eae89649e02a344 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Sun, 26 Feb 2017 13:34:17 +0100 Subject: Call the cylinder working pressure "starting pressure" in planner Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- qt-models/cylindermodel.cpp | 9 +++++++++ qt-models/cylindermodel.h | 1 + 2 files changed, 10 insertions(+) diff --git a/qt-models/cylindermodel.cpp b/qt-models/cylindermodel.cpp index fe63cf6f2..59d993374 100644 --- a/qt-models/cylindermodel.cpp +++ b/qt-models/cylindermodel.cpp @@ -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() { diff --git a/qt-models/cylindermodel.h b/qt-models/cylindermodel.h index ce2c87e69..88da8048c 100644 --- a/qt-models/cylindermodel.h +++ b/qt-models/cylindermodel.h @@ -40,6 +40,7 @@ public: void updateDecoDepths(pressure_t olddecopo2); cylinder_t *cylinderAt(const QModelIndex &index); bool changed; + virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const; public slots: -- cgit v1.2.3-70-g09d2