> On 26 Feb 2017, at 13:38, Robert Helling <[email protected]> wrote:
> 
> <0001-Call-the-cylinder-working-pressure-starting-pressure-i.txt>

That should of course better be translated…
From ece86d001d7feabc2a0fedf6f07fd3e9b46ae1b1 Mon Sep 17 00:00:00 2001
From: "Robert C. Helling" <[email protected]>
Date: Sun, 26 Feb 2017 13:34:17 +0100
Subject: [PATCH] Call the cylinder working pressure "starting pressure" in
 planner
To: [email protected]

Signed-off-by: Robert C. Helling <[email protected]>
---
 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 fe63cf6..582025a 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 pres.");
+       else
+               return CleanerTableModel::headerData(section, orientation, 
role);
+}
+
+
 CylindersModel *CylindersModel::instance()
 {
 
diff --git a/qt-models/cylindermodel.h b/qt-models/cylindermodel.h
index ce2c87e..88da804 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:
-- 
2.10.1 (Apple Git-78)

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to