diff --git a/src/declarativeimports/core/datamodel.cpp b/src/declarativeimports/core/datamodel.cpp index 06b64e4af..cbbe3d5e1 100644 --- a/src/declarativeimports/core/datamodel.cpp +++ b/src/declarativeimports/core/datamodel.cpp @@ -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); -} - } diff --git a/src/declarativeimports/core/datamodel.h b/src/declarativeimports/core/datamodel.h index c60798f8f..f06a51e18 100644 --- a/src/declarativeimports/core/datamodel.h +++ b/src/declarativeimports/core/datamodel.h @@ -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,