From 9bc7d8f514d40da94285be980e19d6f16f421067 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Fri, 30 Aug 2013 16:43:10 -0300 Subject: More Code Cleanup The code now seems to be mostly working. There is unfortunately a QAction shortcut conflict between the implementation and the MainWindow. - I'm gonna fix that in the next commit. Signed-off-by: Tomaz Canabrava --- qt-ui/diveplanner.cpp | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index a42851a84..e7c1b1962 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -2,27 +2,21 @@ #include "graphicsview-common.h" #include "models.h" #include "modeldelegates.h" +#include "ui_diveplanner.h" +#include "mainwindow.h" #include "../dive.h" #include "../divelist.h" #include "../planner.h" -#include #include #include -#include -#include -#include #include #include #include -#include #include -#include #include #include -#include "ui_diveplanner.h" -#include "mainwindow.h" #define TIME_INITIAL_MAX 30 @@ -196,7 +190,6 @@ void DivePlannerGraphics::keyDownAction() plannerModel->editStop(row, dp); } } - createDecoStops(); } } @@ -244,7 +237,6 @@ void DivePlannerGraphics::keyLeftAction() plannerModel->editStop(row, dp); } } - createDecoStops(); } void DivePlannerGraphics::keyRightAction() @@ -272,7 +264,7 @@ void DivePlannerGraphics::keyRightAction() dp.time += 60; plannerModel->editStop(row, dp); } - } createDecoStops(); + } } void DivePlannerGraphics::keyDeleteAction() @@ -286,7 +278,6 @@ void DivePlannerGraphics::keyDeleteAction() } } plannerModel->removeSelectedPoints(selectedIndexes); - createDecoStops(); } } @@ -324,7 +315,6 @@ void DivePlannerGraphics::keyEscAction() scene()->clearSelection(); return; } - cancelPlan(); } @@ -378,7 +368,6 @@ void DivePlannerGraphics::decreaseDepth() return; } } - depthLine->setMaximum(depthLine->maximum() - 10); depthLine->updateTicks(); createDecoStops(); -- cgit v1.2.3-70-g09d2