diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-07-02 14:36:52 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-07-02 14:36:52 -0300 |
commit | 7c8bdf70d5300a0325c7c6cc8872373fc8274063 (patch) | |
tree | 3dba6cec7da0ca5e73389f3fbcf3bef4a3ca5487 /qt-ui/diveplanner.h | |
parent | 6e6a1c08c3c62eac6a809559fc55485b564de3e0 (diff) | |
download | subsurface-7c8bdf70d5300a0325c7c6cc8872373fc8274063.tar.gz |
Make the increase time button to work.
Makes the increase time button to work, it will
increase the minimum time, not the correct time of the
dive. the total time is calculated by the deco, and
does not come from this, unless the deco is smaller
than the minimum time.
This patch also fixes the problem where a button
would only click once - I was holding the first
clicked button as the 'mouse grabber', bad tomaz.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r-- | qt-ui/diveplanner.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index a7459de1b..e9dfd91e9 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -72,8 +72,8 @@ protected: void createDecoStops(); bool isPointOutOfBoundaries(const QPointF& point); void deleteTemporaryDivePlan(struct divedatapoint* dp); - qreal fromPercent(qreal percent, Qt::Orientation orientation); + private slots: void increaseTime(); void increaseDepth(); @@ -117,6 +117,8 @@ private: Button *lessDepth; // remove 10 meters to the depth ruler. Button *okBtn; // accepts, and creates a new dive based on the plan. Button *cancelBtn; // rejects, and clears the dive plan. + + int minMinutes; // this holds the minimum duration of the dive. }; #endif |