Feature request #3157

Load an editable layer as a readonly one

Added by Giuseppe Sucameli over 13 years ago. Updated over 13 years ago.

Status:Closed
Priority:Low
Assignee:nobody -
Category:Map Legend
Pull Request or Patch supplied: Resolution:fixed
Easy fix?:No Copied to github as #:13217

Description

Would be very useful for plugins developer the possibility to add a layer in canvas disabling its editing capabilities.

A solution could be adding a pair of methods setReadOnly(bool) and isReadOnly() for the layers. If set as read only, editing would be disabled.

patch_for_ticket_3157.diff Magnifier - patch to make a layer readonly (3.96 KB) Giuseppe Sucameli, 2010-10-28 10:06 AM

Associated revisions

Revision 6b14503b
Added by Giuseppe Sucameli over 13 years ago

applied patch to make a vector layer read-only, to fix #3157

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14451 c8812cc2-4d05-0410-92ff-de0c093fc19c

Revision 519f1206
Added by Giuseppe Sucameli over 13 years ago

applied patch to make a vector layer read-only, to fix #3157

git-svn-id: http://svn.osgeo.org/qgis/trunk@14451 c8812cc2-4d05-0410-92ff-de0c093fc19c

History

#1 Updated by Giuseppe Sucameli over 13 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

applied from 519f1206 (SVN r14452)

Also available in: Atom PDF