Remove DataModel::roleNameToId
It is unused and returned -1 whereas SortFilterModel would return Qt::DisplayRole Differential Revision: https://phabricator.kde.org/D8638
This commit is contained in:
parent
7ec2ccb446
commit
d51456bdfc
@ -562,13 +562,5 @@ QVariantMap DataModel::get(int row) const
|
||||
return map;
|
||||
}
|
||||
|
||||
int DataModel::roleNameToId(const QString &name)
|
||||
{
|
||||
if (!m_roleIds.contains(name)) {
|
||||
return -1;
|
||||
}
|
||||
return m_roleIds.value(name);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -200,8 +200,6 @@ public:
|
||||
void setSourceFilter(const QString &key);
|
||||
QString sourceFilter() const;
|
||||
|
||||
int roleNameToId(const QString &name); //FIXME TODO KF6: This should have been const.
|
||||
|
||||
//Reimplemented
|
||||
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE;
|
||||
QVariant headerData(int section, Qt::Orientation orientation,
|
||||
|
Loading…
Reference in New Issue
Block a user