diff options
Diffstat (limited to 'src/qmlmodels/qqmltreemodeltotablemodel.cpp')
-rw-r--r-- | src/qmlmodels/qqmltreemodeltotablemodel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qmlmodels/qqmltreemodeltotablemodel.cpp b/src/qmlmodels/qqmltreemodeltotablemodel.cpp index 1fdcc1f95b..d300ff2d1a 100644 --- a/src/qmlmodels/qqmltreemodeltotablemodel.cpp +++ b/src/qmlmodels/qqmltreemodeltotablemodel.cpp @@ -164,6 +164,11 @@ QVariant QQmlTreeModelToTableModel::headerData(int section, Qt::Orientation orie return m_model->headerData(section, orientation, role); } +Qt::ItemFlags QQmlTreeModelToTableModel::flags(const QModelIndex &index) const +{ + return m_model->flags(mapToModel(index)); +} + int QQmlTreeModelToTableModel::depthAtRow(int row) const { if (row < 0 || row >= m_items.size()) |