diff options
Diffstat (limited to 'qt-models/divecomputermodel.h')
-rw-r--r-- | qt-models/divecomputermodel.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qt-models/divecomputermodel.h b/qt-models/divecomputermodel.h index ab352513c..d50e1cd96 100644 --- a/qt-models/divecomputermodel.h +++ b/qt-models/divecomputermodel.h @@ -4,6 +4,7 @@ #include "qt-models/cleanertablemodel.h" #include "core/device.h" +#include <QSortFilterProxyModel> class DiveComputerModel : public CleanerTableModel { Q_OBJECT @@ -29,4 +30,11 @@ private: QVector<device> dcs; }; +class DiveComputerSortedModel : public QSortFilterProxyModel { +public: + using QSortFilterProxyModel::QSortFilterProxyModel; +private: + bool lessThan(const QModelIndex &i1, const QModelIndex &i2) const; +}; + #endif |