Skip to content
Permalink
Browse files

emit dataChanged in setData because Qt says to do so

  • Loading branch information
3nids committed Aug 31, 2018
1 parent 0475ff9 commit 010295fa1c7e2bc8ceadcf180e3f13ad2ebda317
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/qgssnappinglayertreemodel.cpp
@@ -550,6 +550,7 @@ bool QgsSnappingLayerTreeModel::setData( const QModelIndex &index, const QVarian
config.setIndividualLayerSettings( vl, ls );
mProject->setSnappingConfig( config );
}
emit dataChanged( index, index );
return true;
}

@@ -572,6 +573,7 @@ bool QgsSnappingLayerTreeModel::setData( const QModelIndex &index, const QVarian
QgsSnappingConfig config = mProject->snappingConfig();
config.setIndividualLayerSettings( vl, ls );
mProject->setSnappingConfig( config );
emit dataChanged( index, index );
return true;
}
}
@@ -592,6 +594,7 @@ bool QgsSnappingLayerTreeModel::setData( const QModelIndex &index, const QVarian
QgsSnappingConfig config = mProject->snappingConfig();
config.setIndividualLayerSettings( vl, ls );
mProject->setSnappingConfig( config );
emit dataChanged( index, index );
return true;
}
}
@@ -612,6 +615,7 @@ bool QgsSnappingLayerTreeModel::setData( const QModelIndex &index, const QVarian
QgsSnappingConfig config = mProject->snappingConfig();
config.setIndividualLayerSettings( vl, ls );
mProject->setSnappingConfig( config );
emit dataChanged( index, index );
return true;
}
}
@@ -632,6 +636,7 @@ bool QgsSnappingLayerTreeModel::setData( const QModelIndex &index, const QVarian
avoidIntersectionsList.removeAll( vl );

mProject->setAvoidIntersectionsLayers( avoidIntersectionsList );
emit dataChanged( index, index );
return true;
}
}

0 comments on commit 010295f

Please sign in to comment.
You can’t perform that action at this time.