Commit f261e291 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Don't use deprecated model reset() function

parent 913aba83
Pipeline #33726 passed with stage
in 20 minutes and 35 seconds
......@@ -48,7 +48,8 @@ public:
int rowCount(const QModelIndex &) const override;
QVariant data(const QModelIndex &idx, int role) const override;
/* upgrade to public */ using QAbstractListModel::reset;
/* upgrade to public */ using QAbstractListModel::beginResetModel;
/* upgrade to public */ using QAbstractListModel::endResetModel;
};
class AllCertificatesKeyFilter : public DefaultKeyFilter
......@@ -170,9 +171,10 @@ public:
Private() : filters(), appearanceFilters(), model(this) {}
void clear()
{
model.beginResetModel();
filters.clear();
appearanceFilters.clear();
model.reset();
model.endResetModel();
}
std::vector<std::shared_ptr<KeyFilter>> filters;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment