diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-08-30 16:08:55 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-08-30 16:08:55 -0300 |
commit | 72807017aeb4fb9db36e5c160ef6d6f89200590e (patch) | |
tree | 9b8592c91efc2daf2b7431b91e43ca80bcecea3e /qt-ui/diveplanner.h | |
parent | d37213a413d8b460aba0363879a162af8bf0a47e (diff) | |
download | subsurface-72807017aeb4fb9db36e5c160ef6d6f89200590e.tar.gz |
Make planned points deletion works on the Table too.
Now the planner deletes points by clicking on the
trash icon on the table. The dive planner is almost
finished. <3
next: add a point from the table.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r-- | qt-ui/diveplanner.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index 976e06f06..0aea77788 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -32,6 +32,7 @@ public: virtual bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); virtual Qt::ItemFlags flags(const QModelIndex& index) const; void removeSelectedPoints(const QVector<int>& rows); + /** * @return the row number. */ @@ -47,6 +48,7 @@ public slots: void setStartTime(const QTime& t); void setLastStop6m(bool value); void createPlan(); + void removePoint(const QModelIndex& index); private: explicit DivePlannerPointsModel(QObject* parent = 0); |