aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/models.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-22 14:25:37 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-22 14:27:41 -0300
commit3e51476d8757752ccfa908d54b4f2425d908c839 (patch)
tree0b2d965d03f4af663c64e654f5a39fcd58ef554e /qt-ui/models.cpp
parentf73660cc0916bd52adfeaeb97c836176431b7d97 (diff)
downloadsubsurface-3e51476d8757752ccfa908d54b4f2425d908c839.tar.gz
Removed unused debug, and set the correct data on the delegates.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r--qt-ui/models.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index 360058dfd..78763d11b 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -66,7 +66,7 @@ QVariant CylindersModel::data(const QModelIndex& index, int role) const
cylinder_t *cyl = &current->cylinder[index.row()];
- if (role == Qt::DisplayRole) {
+ if (role == Qt::DisplayRole || role==Qt::EditRole) {
switch(index.column()) {
case TYPE:
ret = QString(cyl->type.description);
@@ -261,7 +261,7 @@ QVariant WeightModel::data(const QModelIndex& index, int role) const
weightsystem_t *ws = &current_dive->weightsystem[index.row()];
- if (role == Qt::DisplayRole) {
+ if (role == Qt::DisplayRole || role == Qt::EditRole) {
switch(index.column()) {
case TYPE:
ret = QString(ws->description);