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 <acrlakshman@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Lakshman 2014-04-01 17:41:20 -05:00 committed by Dirk Hohndel
parent c6ceab4fec
commit b629905ec5

View file

@ -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