diff options
Diffstat (limited to 'mappingtreemodel.cpp')
-rw-r--r-- | mappingtreemodel.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mappingtreemodel.cpp b/mappingtreemodel.cpp index d63ef63..9bb278d 100644 --- a/mappingtreemodel.cpp +++ b/mappingtreemodel.cpp @@ -136,6 +136,9 @@ QVariant MappingTreeModel::data(const QModelIndex &index, int role) const{ if(role == AddedRole){ return item->data(Added); } + if(role == MapParentIdRole){ + return item->data(MapParentId); + } if(role == Qt::ForegroundRole){ if(mSelectedMappings.contains(item)){ return QColor(Qt::blue); @@ -218,6 +221,9 @@ bool MappingTreeModel::setData(const QModelIndex &index, const QVariant &value, if(role == AddedRole){ item->setData(Added, value); } + if(role == MapParentIdRole){ + item->setData(MapParentId, value); + } return true; } |