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:
Berthold Stoeger 2018-08-28 20:54:53 +02:00 committed by Dirk Hohndel
parent 9b90c461a2
commit 236f0512be
2 changed files with 7 additions and 6 deletions

View file

@ -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;