summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-03-22 15:13:58 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-23 17:24:40 -0700
commit8bc2ad14737eeb55368d19ab4d0b9735b7d35139 (patch)
tree1f5ec36e330c13af44d229a63c4a878d86d5eed5 /qt-ui/maintab.cpp
parentd4a1932276872954364a33d7f2b3ad0b16a1f38b (diff)
downloadsubsurface-8bc2ad14737eeb55368d19ab4d0b9735b7d35139.tar.gz
Enable parts of planner based on define
In bf205726 DEPTH/Switch at was disabled by commenting out that code. This puts it back behind ifdefs Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 98283891c..682ff52c4 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -88,8 +88,9 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
ui.cylinders->view()->setItemDelegateForColumn(CylindersModel::TYPE, new TankInfoDelegate(this));
ui.weights->view()->setItemDelegateForColumn(WeightModel::TYPE, new WSInfoDelegate(this));
- // disabled as this column is pointless outside the disabled planner
- // ui.cylinders->view()->setColumnHidden(CylindersModel::DEPTH, true);
+#ifdef ENABLE_PLANNER
+ ui.cylinders->view()->setColumnHidden(CylindersModel::DEPTH, true);
+#endif
completers.buddy = new QCompleter(&buddyModel, ui.buddy);
completers.divemaster = new QCompleter(&diveMasterModel, ui.divemaster);
completers.location = new QCompleter(&locationModel, ui.location);