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>
This commit is contained in:
Tomaz Canabrava 2013-08-26 14:17:39 -03:00
parent 024dd80664
commit bc71f9a916
2 changed files with 56 additions and 27 deletions

View file

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