Feature request #15733
improve qml API to allow filtering different layer definition sections
|Pull Request or Patch supplied:||No||Resolution:|
|Easy fix?:||No||Copied to github as #:||23655|
QML API currently saves the whole layer definition which leads to caveats in project handling.
One is that saving multiple styles in a layer will save form definition inside one style.
When it is nice to be able to save whole layer definition for backup purposes, form section should be unique for a layer, no matter how much styles are stored.
#2 Updated by Regis Haubourg over 1 year ago
- Description updated (diff)
After some brainstorming with Matthias and QWAT's folk, this would help a lot to easily customize and get projects in sync.
What is expected :
- add subentries in the "style" to save only forms / labels / styles / metadata etc..
- display the style title outside of the style widget, so that users know permanently what style is being used.
- store a name in exported QML and give feeback when loading a new style (a qgs messagebar for instance) + rules for ensuring unique style naming