diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-08-26 14:17:39 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-08-26 14:17:39 -0300 |
commit | bc71f9a9160cd704e6a01e5485cadba950d758e9 (patch) | |
tree | fc73ced10f2794006ffa0671e495909bf71aecbc /qt-ui/diveplanner.h | |
parent | 024dd80664a160671922043762491d11f7d60b5a (diff) | |
download | subsurface-bc71f9a9160cd704e6a01e5485cadba950d758e9.tar.gz |
Moved the creation of the data plan point to the model.
Moved the creation of the data plan point to the model,
this way when the user creates a data point on the
graphical planner, or when the user creates the point
on the QWidget based view, both of them will be updated.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r-- | qt-ui/diveplanner.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index ab466da8e..e8951b682 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -31,7 +31,7 @@ public: * @return the row number. */ int addStop(int meters, int minutes,const QString& gas, int ccpoint ); - + divedatapoint at(int row); public slots: void setGFHigh(short gfhigh); void setGFLow(short ghflow); @@ -131,7 +131,7 @@ private slots: void cancelPlan(); void prepareSelectGas(); void selectGas(const QModelIndex& index); - + void pointInserted(const QModelIndex&, int start, int end); private: void moveActiveHandler(const QPointF& pos); |