summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-08-26 14:17:39 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-08-26 14:17:39 -0300
commitbc71f9a9160cd704e6a01e5485cadba950d758e9 (patch)
treefc73ced10f2794006ffa0671e495909bf71aecbc /qt-ui/diveplanner.h
parent024dd80664a160671922043762491d11f7d60b5a (diff)
downloadsubsurface-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.h4
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);