Re: [Qgis-developer] Why QDialogProgress used in QgsVectorLayer::countSymbolFeatures ?

2016-02-10 Thread René-Luc Dhont
Hi, I've opened an issue http://hub.qgis.org/issues/14272 And proposed code https://github.com/qgis/QGIS/pull/2780 Thanks for review. René-Luc Le 10/02/2016 00:32, Nyall Dawson a écrit : On 10 Feb 2016 7:57 AM, "Nathan Woodrow" > wrote: > >

[Qgis-developer] Why QDialogProgress used in QgsVectorLayer::countSymbolFeatures ?

2016-02-09 Thread René-Luc Dhont
Hi Dev, A new QGIS Server feature : showFeatureCount, uses the method QgsVectorLayer::countSymbolFeatures to display feature count in legend. But this feature doesn't work if a fake X server is not used. I discovered that the method QgsVectorLayer::countSymbolFeatures initialized a

Re: [Qgis-developer] Why QDialogProgress used in QgsVectorLayer::countSymbolFeatures ?

2016-02-09 Thread Nathan Woodrow
Hi, No it would not be the correct place. No gui stuff like that should live in core. Consider it a bug for 2.14 and should be fixed - Nathan On Wed, 10 Feb 2016 1:43 am René-Luc Dhont wrote: > Hi Dev, > > A new QGIS Server feature : showFeatureCount, uses the method >

Re: [Qgis-developer] Why QDialogProgress used in QgsVectorLayer::countSymbolFeatures ?

2016-02-09 Thread Nyall Dawson
On 10 Feb 2016 7:57 AM, "Nathan Woodrow" wrote: > > Hi, > > No it would not be the correct place. No gui stuff like that should live in core. > > Consider it a bug for 2.14 and should be fixed Haven't we also talked about moving this to the data provider, so that we can take