summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-26 07:15:13 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-26 07:37:11 -0800
commitbf20572630b751683449d4bf839f2bb3046ce2bd (patch)
tree213df9bbfa242507cc60a075c0909c0622edade3 /qt-ui/diveplanner.cpp
parentf11001ff4ee478453714df7ed1efdb8a1aa7fbde (diff)
downloadsubsurface-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/diveplanner.cpp')
-rw-r--r--qt-ui/diveplanner.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index 0209b2e1e..4e1865fc6 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -961,7 +961,8 @@ DivePlannerWidget::DivePlannerWidget(QWidget* parent, Qt::WindowFlags f): QWidge
QTableView *view = ui.cylinderTableWidget->view();
view->setColumnHidden(CylindersModel::START, true);
view->setColumnHidden(CylindersModel::END, true);
- view->setColumnHidden(CylindersModel::DEPTH, false);
+ // disabled as pointless outside of the disabled planner
+ // view->setColumnHidden(CylindersModel::DEPTH, false);
view->setItemDelegateForColumn(CylindersModel::TYPE, new TankInfoDelegate(this));
connect(ui.cylinderTableWidget, SIGNAL(addButtonClicked()), DivePlannerPointsModel::instance(), SLOT(addCylinder_clicked()));
connect(ui.tableWidget, SIGNAL(addButtonClicked()), DivePlannerPointsModel::instance(), SLOT(addStop()));