summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-18 09:25:24 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-18 09:25:24 -0700
commitf780a56847f215ffdfdf7712f07298b8252150b1 (patch)
tree7670f42d94bde731a884a704c45a5b4c9482be5f /qt-ui/models.cpp
parent7e64e9a3a936a25f323e4936d61b0f15c5975074 (diff)
downloadsubsurface-f780a56847f215ffdfdf7712f07298b8252150b1.tar.gz
Clean up the last merge
While the code is correct, splitting the class like this is silly and will confuse me later. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r--qt-ui/models.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index 485015379..3a8ee4e42 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -1266,6 +1266,18 @@ void DiveComputerModel::remove(const QModelIndex& index)
update();
}
+void DiveComputerModel::dropWorkingList()
+{
+ // how do I prevent the memory leak ?
+}
+
+void DiveComputerModel::keepWorkingList()
+{
+ if (dcList.dcMap != dcWorkingMap)
+ mark_divelist_changed(TRUE);
+ dcList.dcMap = dcWorkingMap;
+}
+
/*#################################################################
* #
* # Yearly Statistics Model
@@ -1385,15 +1397,3 @@ void YearlyStatisticsModel::update_yearly_stats()
rootItem->children.append(item);
}
}
-
-void DiveComputerModel::dropWorkingList()
-{
- // how do I prevent the memory leak ?
-}
-
-void DiveComputerModel::keepWorkingList()
-{
- if (dcList.dcMap != dcWorkingMap)
- mark_divelist_changed(TRUE);
- dcList.dcMap = dcWorkingMap;
-}