diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-01-26 07:15:13 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-26 07:37:11 -0800 |
commit | bf20572630b751683449d4bf839f2bb3046ce2bd (patch) | |
tree | 213df9bbfa242507cc60a075c0909c0622edade3 /qt-ui/models.cpp | |
parent | f11001ff4ee478453714df7ed1efdb8a1aa7fbde (diff) | |
download | subsurface-bf20572630b751683449d4bf839f2bb3046ce2bd.tar.gz |
Disable the switching depth column for cylinders
Since the planner is disabled this column isn't needed.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r-- | qt-ui/models.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 06bb95281..a1494880d 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -65,7 +65,10 @@ void CleanerTableModel::setHeaderDataStrings(const QStringList& newHeaders) CylindersModel::CylindersModel(QObject* parent): current(0), rows(0) { // enum {REMOVE, TYPE, SIZE, WORKINGPRESS, START, END, O2, HE, DEPTH}; - setHeaderDataStrings( QStringList() << "" << tr("Type") << tr("Size") << tr("WorkPress") << tr("StartPress") << tr("EndPress") << trUtf8("O" UTF8_SUBSCRIPT_2 "%") << tr("He%") << tr("Switch at")); + setHeaderDataStrings( QStringList() << "" << tr("Type") << tr("Size") << tr("WorkPress") << + tr("StartPress") << tr("EndPress") << trUtf8("O" UTF8_SUBSCRIPT_2 "%") << tr("He%") + // while the planner is disabled, we don't need this column: << tr("Switch at") + ); } CylindersModel *CylindersModel::instance() @@ -136,9 +139,9 @@ QVariant CylindersModel::data(const QModelIndex& index, int role) const case HE: ret = percent_string(cyl->gasmix.he); break; - case DEPTH: - ret = get_depth_string(cyl->depth, true); - break; + // case DEPTH: + // ret = get_depth_string(cyl->depth, true); + // break; } break; case Qt::DecorationRole: @@ -251,9 +254,9 @@ bool CylindersModel::setData(const QModelIndex& index, const QVariant& value, in changed = true; } break; - case DEPTH: - if (CHANGED()) - cyl->depth = string_to_depth(vString.toUtf8().data()); + // case DEPTH: + // if (CHANGED()) + // cyl->depth = string_to_depth(vString.toUtf8().data()); } dataChanged(index, index); if (addDiveMode) |