Changeset 1e45858 in subsurface


Ignore:
Timestamp:
Jan 31, 2015, 2:09:50 PM (3 years ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
Mtest, android_test, dcDownload, foratdotde, gitMerge, gitdebug, gitpictures, ios, master, mergeKirigamiPort, pictimeshift, resolutionIndependence, spinner, testTomaz, testing, v4.4-branch, v4.5-branch
Children:
2dc1a42
Parents:
c70ba77
git-author:
Robert C. Helling <helling@…> (01/30/15 02:16:55)
git-committer:
Dirk Hohndel <dirk@…> (01/31/15 14:09:50)
Message:

Update ceiling when changing dive mode

Without this patch, the user effectively cannot change the dive mode as
any change is overwritten by replot copying current_dive over
displayed_dive. The way out is not to call replot but only update the deco
ceiling directly.

Signed-off-by: Robert C. Helling <helling@…>
Signed-off-by: Dirk Hohndel <dirk@…>

Location:
qt-ui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • qt-ui/maintab.cpp

    rf16f4e2 r1e45858  
    10191019        update_setpoint_events(&displayed_dive.dc);
    10201020        markChangedWidget(ui.DiveType);
    1021         MainWindow::instance()->graphics()->replot();
     1021        MainWindow::instance()->graphics()->recalcCeiling();
    10221022}
    10231023
  • qt-ui/profile/profilewidget2.cpp

    rfd33d6aa r1e45858  
    649649}
    650650
     651void ProfileWidget2::recalcCeiling()
     652{
     653        diveCeiling->recalc();
     654}
     655
    651656void ProfileWidget2::settingsChanged()
    652657{
  • qt-ui/profile/profilewidget2.h

    rfd33d6aa r1e45858  
    8383        void setFontPrintScale(double scale);
    8484        void clearHandlers();
     85        void recalcCeiling();
    8586        void setToolTipVisibile(bool visible);
    8687        State currentState;
Note: See TracChangeset for help on using the changeset viewer.