diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-02-27 19:54:31 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-02-28 08:12:26 -0800 |
commit | f55c15e5f957d8ab1c7a5573c173f45ba382cf0b (patch) | |
tree | 65f5a847f5c4fd19cff553493a448d328dacb95b /qt-models/cylindermodel.h | |
parent | cb80ff746b687a3ad29b53d9f633cbdc6b142c71 (diff) | |
download | subsurface-f55c15e5f957d8ab1c7a5573c173f45ba382cf0b.tar.gz |
cleanup: make CylindersModel::cylinderAt private
The last outside use of the function was replaced by calls
to data().
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/cylindermodel.h')
-rw-r--r-- | qt-models/cylindermodel.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-models/cylindermodel.h b/qt-models/cylindermodel.h index 41de5fae5..5cfe72d2d 100644 --- a/qt-models/cylindermodel.h +++ b/qt-models/cylindermodel.h @@ -45,7 +45,6 @@ public: void updateDecoDepths(pressure_t olddecopo2); void updateTrashIcon(); void moveAtFirst(int cylid); - cylinder_t *cylinderAt(const QModelIndex &index); bool changed; QVariant headerData(int section, Qt::Orientation orientation, int role) const override; bool updateBestMixes(); @@ -58,6 +57,7 @@ slots: private: int rows; + cylinder_t *cylinderAt(const QModelIndex &index); }; // Cylinder model that hides unused cylinders if the pref.show_unused_cylinders flag is not set @@ -70,7 +70,6 @@ public: void clear(); void add(); void updateDive(); - cylinder_t *cylinderAt(const QModelIndex &index); public slots: void remove(QModelIndex index); |