|
@@ -41,7 +41,9 @@ Variant FilteringProxyModel::data(ModelIndex const& index, ModelRole role) const
|
|
|
if ((size_t)index.row() > m_matching_indices.size() || index.row() < 0)
|
|
|
return {};
|
|
|
|
|
|
- return m_matching_indices[index.row()].data(role);
|
|
|
+ // FIXME: Support hierarchical models (with a non-empty index.parent()).
|
|
|
+ auto underlying_index = m_model->index(m_matching_indices[index.row()].row(), index.column(), {});
|
|
|
+ return underlying_index.data(role);
|
|
|
}
|
|
|
|
|
|
void FilteringProxyModel::invalidate()
|