diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-10-27 16:09:55 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-28 15:10:57 +0000 |
commit | 7f2026ded8645910ad1ad9c61cb1eea20ea276b6 (patch) | |
tree | de73e4759d9f8dd97e55654ca25f120bcdfb9b6b /qt-models | |
parent | 651f63282fd82e4f04b3edd6bfe987a88b746525 (diff) | |
download | subsurface-7f2026ded8645910ad1ad9c61cb1eea20ea276b6.tar.gz |
Cleanup: remove DiveTripModel::layout() function
This accessor was never used. This is a small step in splitting
the DiveTripModel in two (list & tree), which means that the
layout is moved up to the view.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/divetripmodel.cpp | 5 | ||||
-rw-r--r-- | qt-models/divetripmodel.h | 1 |
2 files changed, 0 insertions, 6 deletions
diff --git a/qt-models/divetripmodel.cpp b/qt-models/divetripmodel.cpp index 5f64b8741..14bc744f6 100644 --- a/qt-models/divetripmodel.cpp +++ b/qt-models/divetripmodel.cpp @@ -633,11 +633,6 @@ void DiveTripModel::setupModelData() endResetModel(); } -DiveTripModel::Layout DiveTripModel::layout() const -{ - return currentLayout; -} - void DiveTripModel::setLayout(DiveTripModel::Layout layout) { currentLayout = layout; diff --git a/qt-models/divetripmodel.h b/qt-models/divetripmodel.h index 9ccad16dc..fb826eec1 100644 --- a/qt-models/divetripmodel.h +++ b/qt-models/divetripmodel.h @@ -49,7 +49,6 @@ public: QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override; bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override; DiveTripModel(QObject *parent = 0); - Layout layout() const; void setLayout(Layout layout); QVariant data(const QModelIndex &index, int role) const; int columnCount(const QModelIndex&) const; |