mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
d37213a413
commit
72807017ae
2 changed files with 17 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue