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>
This commit is contained in:
Tomaz Canabrava 2013-08-30 16:08:55 -03:00
parent d37213a413
commit 72807017ae
2 changed files with 17 additions and 6 deletions

View file

@ -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);