Re: [Qgis-developer] How to access the QgsVisibilityPresetCollection() in pyqgis

2015-10-29 Thread Alexandre Neto
Hi Nyall, Thanks! Nyall Dawson escreveu no dia qui, 29/10/2015 às 12:55: > On 29 October 2015 at 23:31, Alexandre Neto wrote: > > Is it possible to access to presets in a project using PyQgis? I found > > QgsVisibilityPresetCollection() in QGIS API, but I can't seem to find > how to > > access

Re: [Qgis-developer] How to access the QgsVisibilityPresetCollection() in pyqgis

2015-10-29 Thread Nyall Dawson
On 29 October 2015 at 23:31, Alexandre Neto wrote: > Is it possible to access to presets in a project using PyQgis? I found > QgsVisibilityPresetCollection() in QGIS API, but I can't seem to find how to > access the current one used by the active project. You access it through the project instanc

[Qgis-developer] How to access the QgsVisibilityPresetCollection() in pyqgis

2015-10-29 Thread Alexandre Neto
Is it possible to access to presets in a project using PyQgis? I found QgsVisibilityPresetCollection() in QGIS API, but I can't seem to find how to access the current one used by the active project. My plans were to create a plugin that allows to manage all the projec presets. Things like update o