diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-07-25 20:40:47 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-07-27 09:08:42 -0700 |
commit | 079b99135a2340d9ffc97ceec2b2b5e288f597de (patch) | |
tree | 417878396fbcf1c5d07a4eba6114687ee75b2ffb /qt-models/divetripmodel.h | |
parent | d3dc698bba07b4dd23a21c826a36d8bcc87fd3be (diff) | |
download | subsurface-079b99135a2340d9ffc97ceec2b2b5e288f597de.tar.gz |
Dive list view: move column width logic back from DiveTripModel
Conceptually, the width of the columns should probably reside in
the view not the model. But much more severly, the old code didn't
work: Columns were set in a DiveTripModel, which was deleted
right away.
Therefore, move the logic back to the DiveListView. Introduce
a QVector<int> of the initial column widths, so that they can be
erased from the setting if unchanged.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/divetripmodel.h')
-rw-r--r-- | qt-models/divetripmodel.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/qt-models/divetripmodel.h b/qt-models/divetripmodel.h index 71a316074..0d1cff5a0 100644 --- a/qt-models/divetripmodel.h +++ b/qt-models/divetripmodel.h @@ -99,13 +99,10 @@ public: DiveTripModel(QObject *parent = 0); Layout layout() const; void setLayout(Layout layout); - int columnWidth(int column); - void setColumnWidth(int column, int width); private: void setupModelData(); QMap<dive_trip_t *, TripItem *> trips; - QVector<int> columnWidthMap; Layout currentLayout; }; |