planner: initialize dive selection mode in constructor

There is no point in repopulating this regularly, as the
content does not change.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2022-11-08 07:48:49 +01:00 committed by bstoeger
parent 4c02d1c279
commit 1fb9d6236b
3 changed files with 5 additions and 13 deletions

View file

@ -26,19 +26,15 @@ class GasSelectionModel : public QStringListModel {
public:
Qt::ItemFlags flags(const QModelIndex &index) const;
QVariant data(const QModelIndex &index, int role) const override;
public
slots:
void repopulate(const dive *d);
};
class DiveTypeSelectionModel : public QStringListModel {
Q_OBJECT
public:
DiveTypeSelectionModel();
Qt::ItemFlags flags(const QModelIndex &index) const;
QVariant data(const QModelIndex &index, int role) const override;
public
slots:
void repopulate();
};
class LanguageModel : public QAbstractListModel {