mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Make the planner show something.
This is working in the wrong way, mostly because I'm setting the plannermodel to ADD state ( and the planner graphic to the correct PLAN state ), but I don't know why - when on PLAN state on the model, things just don't work. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9b9abd5f2a
commit
eec0b327a3
2 changed files with 16 additions and 7 deletions
|
@ -363,7 +363,7 @@ void ProfileWidget2::plotDives(QList<dive *> dives)
|
|||
//TODO: This is a temporary hack to help me understand the Planner.
|
||||
// It seems that each time the 'createTemporaryPlan' runs, a new
|
||||
// dive is created, and thus, we can plot that. hm...
|
||||
if (currentState == ADD) {
|
||||
if (currentState == ADD || currentState == PLAN) {
|
||||
DivePlannerPointsModel *plannerModel = DivePlannerPointsModel::instance();
|
||||
plannerModel->createTemporaryPlan();
|
||||
if (!plannerModel->getDiveplan().dp) {
|
||||
|
@ -509,7 +509,7 @@ void ProfileWidget2::plotDives(QList<dive *> dives)
|
|||
prefs.animation = animSpeedBackup;
|
||||
}
|
||||
|
||||
if (currentState == ADD) { // TODO: figure a way to move this from here.
|
||||
if (currentState == ADD || currentState == PLAN) { // TODO: figure a way to move this from here.
|
||||
repositionDiveHandlers();
|
||||
DivePlannerPointsModel *model = DivePlannerPointsModel::instance();
|
||||
model->deleteTemporaryPlan();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue