diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-08-30 15:53:10 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-08-30 15:53:10 -0300 |
commit | d37213a413d8b460aba0363879a162af8bf0a47e (patch) | |
tree | e349a77614c56e301dc5f321303e1671b4a9bbf0 /qt-ui/diveplanner.h | |
parent | 5e722a93e46ec1217bffd2bbcb1279cfd96dc2ed (diff) | |
download | subsurface-d37213a413d8b460aba0363879a162af8bf0a47e.tar.gz |
Moves deletion logic of divepoints to the Model.
Deletes the logic of divepoints to the model, this
makes automatic updates on the table on deletions.
( remember, to select dive points, ctrl+click on it.
) if you want to delete it, press 'delete', it will
be removed from the graphics part and also from the
table.
Next: delete point by clicking on the table trash-
icon.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r-- | qt-ui/diveplanner.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index ef5a8e50f..976e06f06 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -31,7 +31,7 @@ public: virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; 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. */ @@ -134,6 +134,7 @@ private slots: void prepareSelectGas(); void selectGas(const QModelIndex& index); void pointInserted(const QModelIndex&, int start, int end); + void pointsRemoved(const QModelIndex&, int start, int end); private: void moveActiveHandler(const QPointF& pos); |