summaryrefslogtreecommitdiffstats
path: root/qt-ui/downloadfromdivecomputer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.cpp')
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp
index 5ac39ebf3..fb981c9f8 100644
--- a/qt-ui/downloadfromdivecomputer.cpp
+++ b/qt-ui/downloadfromdivecomputer.cpp
@@ -586,22 +586,6 @@ QVariant DiveImportedModel::data(const QModelIndex &index, int role) const
return QVariant();
}
-bool DiveImportedModel::setData(const QModelIndex &index, const QVariant &value, int role)
-{
- if (!index.isValid())
- return false;
-
- if (index.row() + firstIndex > lastIndex)
- return false;
-
- if (role != Qt::CheckStateRole)
- return false;
-
- checkStates[index.row()] = value.toBool();
- dataChanged(index, index, QVector<int>() << Qt::CheckStateRole);
- return true;
-}
-
void DiveImportedModel::changeSelected(QModelIndex clickedIndex)
{
checkStates[clickedIndex.row()] = !checkStates[clickedIndex.row()];