aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/downloadfromdivecomputer.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-22 08:30:34 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-22 08:30:34 -0800
commit2866a604b453a3d86c76e37ec32db36671be86ba (patch)
tree713b780385cea6f0f662c03ae60386521f9ecfc3 /qt-ui/downloadfromdivecomputer.cpp
parentdf73f328f88fbb2eccf30886836f9a4d548532a4 (diff)
downloadsubsurface-2866a604b453a3d86c76e37ec32db36671be86ba.tar.gz
Revert "Update Qt4 patch"
This reverts commit 762315e7eef47c1a5357e9c8691676707e3c630e. Oops, this was supposed to update the patch, not update and apply it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.cpp')
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp
index 4e5b27c6b..c57aa1ef2 100644
--- a/qt-ui/downloadfromdivecomputer.cpp
+++ b/qt-ui/downloadfromdivecomputer.cpp
@@ -602,31 +602,19 @@ QVariant DiveImportedModel::data(const QModelIndex &index, int role) const
void DiveImportedModel::changeSelected(QModelIndex clickedIndex)
{
checkStates[clickedIndex.row()] = !checkStates[clickedIndex.row()];
-#if QT_VERSION >= 0x050000
dataChanged(index(0, clickedIndex.row()), index(0, clickedIndex.row()), QVector<int>() << Qt::CheckStateRole);
-#else
- dataChanged(index(0, clickedIndex.row()), index(0, clickedIndex.row()));
-#endif
}
void DiveImportedModel::selectAll()
{
memset(checkStates, true, lastIndex - firstIndex + 1);
-#if QT_VERSION >= 0x050000
dataChanged(index(0, 0), index(0, lastIndex - firstIndex), QVector<int>() << Qt::CheckStateRole);
-#else
- dataChanged(index(0, 0), index(0, lastIndex - firstIndex));
-#endif
}
void DiveImportedModel::selectNone()
{
memset(checkStates, false, lastIndex - firstIndex + 1);
-#if QT_VERSION >= 0x050000
dataChanged(index(0, 0), index(0, lastIndex - firstIndex), QVector<int>() << Qt::CheckStateRole);
-#else
- dataChanged(index(0, 0), index(0, lastIndex - firstIndex ));
-#endif
}
Qt::ItemFlags DiveImportedModel::flags(const QModelIndex &index) const