From 8afb0dedc99737d043ee334922b7194ef5df5bb9 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 20 Nov 2021 12:27:02 +0100 Subject: [PATCH] planner: hide internal cylinder columns In cb80ff746b687a3ad29b53d9f633cbdc6b142c71 internal columns were added to the cylinder model. These were not hidden in the planner. Nobody complained? Remove this clutter from the UI by hiding the columns. Signed-off-by: Berthold Stoeger --- desktop-widgets/diveplanner.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop-widgets/diveplanner.cpp b/desktop-widgets/diveplanner.cpp index 7244039b6..6b25cd844 100644 --- a/desktop-widgets/diveplanner.cpp +++ b/desktop-widgets/diveplanner.cpp @@ -47,6 +47,8 @@ DivePlannerWidget::DivePlannerWidget(QWidget *parent) : QWidget(parent, QFlag(0) view->setColumnHidden(CylindersModel::START, true); view->setColumnHidden(CylindersModel::END, true); view->setColumnHidden(CylindersModel::DEPTH, false); + view->setColumnHidden(CylindersModel::WORKINGPRESS_INT, true); + view->setColumnHidden(CylindersModel::SIZE_INT, true); view->setItemDelegateForColumn(CylindersModel::TYPE, new TankInfoDelegate(this)); connect(ui.cylinderTableWidget, &TableView::addButtonClicked, plannerModel, &DivePlannerPointsModel::addCylinder_clicked); connect(ui.tableWidget, &TableView::addButtonClicked, plannerModel, &DivePlannerPointsModel::addDefaultStop);