From b629905ec5c099cb83eafff8c0de1e5e5793f563 Mon Sep 17 00:00:00 2001 From: Lakshman Date: Tue, 1 Apr 2014 17:41:20 -0500 Subject: Make compute waypoints content uneditable Currently user can edit content in compute waypoints table (in PLAN mode), ofcourse this does not trigger any calculations in the code, but user cannot see the content he needs to see after edit. This patch makes the content uneditable. Signed-off-by: Lakshman Anumolu Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index a7d5ee7c6..135c21175 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -115,7 +115,7 @@ QVariant DivePlannerDisplay::headerData(int section, Qt::Orientation orientation Qt::ItemFlags DivePlannerDisplay::flags(const QModelIndex &index) const { - return QAbstractItemModel::flags(index) | Qt::ItemIsEditable; + return QAbstractItemModel::flags(index); } int DivePlannerDisplay::rowCount(const QModelIndex &parent) const -- cgit v1.2.3-70-g09d2