summaryrefslogtreecommitdiffstats
path: root/qt-models/filtermodels.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-08-28 20:54:53 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-31 07:48:23 -0700
commit236f0512bec2946b35052abf637c7c8df97f34bf (patch)
tree6f28c799789f1cd52fc93e4c5683063633da49de /qt-models/filtermodels.h
parent9b90c461a21a71b1cd97060eee5a3cfb540bedba (diff)
downloadsubsurface-236f0512bec2946b35052abf637c7c8df97f34bf.tar.gz
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>
Diffstat (limited to 'qt-models/filtermodels.h')
-rw-r--r--qt-models/filtermodels.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-models/filtermodels.h b/qt-models/filtermodels.h
index 7e5aae727..5c54a135b 100644
--- a/qt-models/filtermodels.h
+++ b/qt-models/filtermodels.h
@@ -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;