mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
4c02d1c279
commit
1fb9d6236b
3 changed files with 5 additions and 13 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue