summaryrefslogtreecommitdiffstats
path: root/qt-models/divecomputermodel.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-09-12 23:31:46 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-25 13:59:04 -0700
commitfa7dfa37102fe2b0cf7518c329c3ba0273e39ab9 (patch)
tree09562030ea022630bf1306d2e0d31ad6cb21083a /qt-models/divecomputermodel.h
parentfaebb539091ca5550bb6b60280d692c50d547bc0 (diff)
downloadsubsurface-fa7dfa37102fe2b0cf7518c329c3ba0273e39ab9.tar.gz
desktop: add tab-widget for dive computer names
If we want to include dive computer names in the undo system, there should be visual feedback on undo/redo. This would mean opening the divecomputer dialog, which would appear quite strange. Therefore, add a tab. This is not ideal, but consistent with the dive site tab, which probably shouldn't be there either. In the future, the UI needs some rethinking. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/divecomputermodel.h')
-rw-r--r--qt-models/divecomputermodel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/divecomputermodel.h b/qt-models/divecomputermodel.h
index b21eadcc9..7f3d4171f 100644
--- a/qt-models/divecomputermodel.h
+++ b/qt-models/divecomputermodel.h
@@ -33,6 +33,7 @@ private:
class DiveComputerSortedModel : public QSortFilterProxyModel {
public:
using QSortFilterProxyModel::QSortFilterProxyModel;
+ void remove(const QModelIndex &index);
private:
bool lessThan(const QModelIndex &i1, const QModelIndex &i2) const;
};