diff options
author | Robert C. Helling <helling@atdotde.de> | 2017-02-26 13:34:17 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-02-26 08:20:31 -0800 |
commit | 0eb42b35b832a7e837dafcbc2eae89649e02a344 (patch) | |
tree | ddf8a22d1725714aa3eab641100efef65acfe3bb /qt-models/cylindermodel.cpp | |
parent | 01874e158f30889ac68b81eced74ecb5a3c98308 (diff) | |
download | subsurface-0eb42b35b832a7e837dafcbc2eae89649e02a344.tar.gz |
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>
Diffstat (limited to 'qt-models/cylindermodel.cpp')
-rw-r--r-- | qt-models/cylindermodel.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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() { |