summaryrefslogtreecommitdiffstats
path: root/mappingtreemodel.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2012-09-22 08:10:44 +0200
committerArno <am@disconnect.de>2012-09-22 08:10:44 +0200
commitb71d36c02bcb5c93bfaf97ccab4b1e99a44b782b (patch)
tree1015f397f805069d3eda6b8ea3832ab7c1bf3824 /mappingtreemodel.cpp
parentf2b80db9c4dd18e59f8b606e113d9f15cd891c5d (diff)
downloadSheMov-b71d36c02bcb5c93bfaf97ccab4b1e99a44b782b.tar.gz
SheMov-b71d36c02bcb5c93bfaf97ccab4b1e99a44b782b.tar.bz2
SheMov-b71d36c02bcb5c93bfaf97ccab4b1e99a44b782b.zip
MappingTreeModel Fix: Select pictures from pics_mappings2
Select pictures referencing pics_mappings2 instead of broken pics_mappings. This just fixes the selection, nothing else!
Diffstat (limited to 'mappingtreemodel.cpp')
-rw-r--r--mappingtreemodel.cpp6
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;
}