Fix for the whitespace damage :s On Wed, May 21, 2014 at 11:56 PM, Tomaz Canabrava <[email protected]> wrote: > Atdtode, Dirk: > > This series of patches makes the new profile somewhat workable as an > 'Add Dive', there are lots of bugs ( handlers don't move for instance > ), but you can actually add the dive stops and save the dive. > > nothing else. > > I'm going to sleep now, as it's midnight, but if anyone wanna lend me > a hand, please. > all code inside an #if 0 on the diveplanner.cpp means that needs to be > moved to the new profile. so, if anyone wanna help, there's a few > quite easy to move around.
From be9238a284f64fbc804bfb956cded7f836249ba2 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava <[email protected]> Date: Wed, 21 May 2014 23:57:28 -0300 Subject: [PATCH 17/17] fix typo
Signed-off-by: Tomaz Canabrava <[email protected]> --- qt-ui/diveplanner.cpp | 2 +- qt-ui/profile/profilewidget2.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index ec6d598..c2d7417 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -1068,7 +1068,7 @@ void DivePlannerPointsModel::remove(const QModelIndex &index) endRemoveRows(); } -struct diveplan& DivePlannerPointsModel::getDiveplan()\ +struct diveplan& DivePlannerPointsModel::getDiveplan() { return diveplan; } diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 8596082..840ed4c 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -346,7 +346,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) { DivePlannerPointsModel *plannerModel = DivePlannerPointsModel::instance(); plannerModel->createTemporaryPlan(); if (!plannerModel->getDiveplan().dp) { @@ -492,7 +492,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) { // TODO: figure a way to move this from here. repositionDiveHandlers(); DivePlannerPointsModel *model = DivePlannerPointsModel::instance(); model->deleteTemporaryPlan(); -- 1.9.3
_______________________________________________ subsurface mailing list [email protected] http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
