Changeset bb315179 in subsurface for qt-models


Ignore:
Timestamp:
Jul 9, 2016, 12:08:48 PM (16 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
54871deb
Parents:
ffca567
git-author:
Rick Walsh <rickmwalsh@…> (07/06/16 05:40:37)
git-committer:
Dirk Hohndel <dirk@…> (07/09/16 12:08:48)
Message:

Planner: update cylinder mixes and MND and MOD when prefs are changed

Signed-off-by: Rick Walsh <rickmwalsh@…>
Signed-off-by: Dirk Hohndel <dirk@…>

Location:
qt-models
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • qt-models/cylindermodel.cpp

    rffca567 rbb315179  
    507507                }
    508508        }
     509        /* This slot is called when the bottom pO2 and END preferences are updated, we want to
     510         * emit dataChanged so MOD and MND are refreshed, even if the gas mix hasn't been changed */
    509511        emit dataChanged(createIndex(0, 0), createIndex(MAX_CYLINDERS - 1, COLUMNS - 1));
    510512        return gasUpdated;
  • qt-models/cylindermodel.h

    rf08b0e0 rbb315179  
    3939        void copyFromDive(struct dive *d);
    4040        void updateDecoDepths(pressure_t olddecopo2);
    41         bool updateBestMixes();
    4241        cylinder_t *cylinderAt(const QModelIndex &index);
    4342        bool changed;
     
    4645slots:
    4746        void remove(const QModelIndex &index);
     47        bool updateBestMixes();
    4848
    4949private:
Note: See TracChangeset for help on using the changeset viewer.