summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.h
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-07-11 12:41:50 +0300
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-07-11 12:41:50 +0300
commit127cd211375ff68c45d18eaab8954627ac8932fe (patch)
tree588c7fabeea9da3724bb6ba13f6531b2dc0e05e2 /qt-ui/models.h
parentadb7dc6fac214dd150208c573a2db9838fbed78d (diff)
downloadsubsurface-127cd211375ff68c45d18eaab8954627ac8932fe.tar.gz
Models: add the DiveItem::displayDate() helper
Add this helper so that we can easily wrap the required memory release after calling get_dive_date_string() (fixes a small memory leak). Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-ui/models.h')
-rw-r--r--qt-ui/models.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/models.h b/qt-ui/models.h
index 439ff05df..bd1e60c0f 100644
--- a/qt-ui/models.h
+++ b/qt-ui/models.h
@@ -142,6 +142,7 @@ struct DiveItem : public TreeItem {
virtual QVariant data(int column, int role) const;
struct dive* dive;
+ QString displayDate() const;
QString displayDuration() const;
QString displayDepth() const;
QString displayTemperature() const;