mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Filter: sort filter items in FilterModelBase::updateList()
All callers of FilterModelBase::updateList() sorted the items (except the last one). Thus we can do the sorting inside the function. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
9b90c461a2
commit
236f0512be
2 changed files with 7 additions and 6 deletions
|
@ -36,7 +36,7 @@ slots:
|
|||
void changeName(const QString &oldName, const QString &newName);
|
||||
protected:
|
||||
explicit FilterModelBase(QObject *parent = 0);
|
||||
void updateList(const QStringList &new_list);
|
||||
void updateList(QStringList &new_list);
|
||||
virtual int countDives(const char *) const = 0;
|
||||
private:
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue