Re: [QGIS-Developer] API break: snapSegment

2017-10-02 Thread lbartoletti
Hi Martin, You rock! Thanks. On 2017-09-29 09:15, Martin Dobias wrote: Hi Loïc On Tue, Sep 26, 2017 at 11:08 PM, L.Bartoletti wrote: Hi, For a few days now QgsMapMouseEvent:: snapSegment is no longer usable (moved). I need these tools to create circles with

Re: [QGIS-Developer] API break: snapSegment

2017-09-29 Thread Régis Haubourg
Hi Loïc, thanks for that work, much appreciated and needed. In the same area, we need the ability to snap on the intersection point of linear segments or curved geometries. Paul Blottiere will help in reviewing your current PR, and I'll be glad to contribute to the QEP! Regards Régis

Re: [QGIS-Developer] API break: snapSegment

2017-09-29 Thread Martin Dobias
Hi Loïc On Tue, Sep 26, 2017 at 11:08 PM, L.Bartoletti wrote: > Hi, > > For a few days now QgsMapMouseEvent:: snapSegment is no longer usable > (moved). I need these tools to create circles with tangents > (https://github.com/qgis/QGIS/pull/4947). > > Is there another

Re: [QGIS-Developer] API break: snapSegment

2017-09-29 Thread lbartoletti
Hi, I am preparing a QEP for new editing tools like trim, extend, chamfers, bevel... (available in CADDigitize, QAD, etc.). I realize that it will also be necessary to be able to snap to segments. Regards. Loïc On 2017-09-26 23:08, L.Bartoletti wrote: Hi, For a few days now

[QGIS-Developer] API break: snapSegment

2017-09-26 Thread L.Bartoletti
Hi, For a few days now QgsMapMouseEvent:: snapSegment is no longer usable (moved). I need these tools to create circles with tangents (https://github.com/qgis/QGIS/pull/4947). Is there another way to get segments by snapping? Greetings. Loïc ___

Re: [Qgis-developer] API Break in 2.16 for QgsComposition

2016-07-19 Thread Sandro Mani
On 16.07.2016 01:20, Nyall Dawson wrote: On 15 July 2016 at 03:40, Tim Sutton wrote: Hi All It seems like something broke in QgsComposition (in 2.16 and master) - we have some code like this: logo = self.composition.getComposerItemById('logo')

Re: [Qgis-developer] API Break in 2.16 for QgsComposition

2016-07-15 Thread Nyall Dawson
On 15 July 2016 at 03:40, Tim Sutton wrote: > > Hi All > > It seems like something broke in QgsComposition (in 2.16 and master) - we > have some code like this: > > logo = self.composition.getComposerItemById('logo') > logo.setPicturePath(self.logo_path) > > > Which fails

Re: [Qgis-developer] API Break in 2.16 for QgsComposition

2016-07-15 Thread Matthias Kuhn
Hi Tim, On 15/07/16 04:19, Tim Sutton wrote: > Hi >> On 15 Jul 2016, at 1:53 AM, Matthias Kuhn > > wrote: >> >> I don't think that was on purpose. >> >> The method setPicturePath is still in QgsComposerPicture, but >> apparently it's not properly

Re: [Qgis-developer] API Break in 2.16 for QgsComposition

2016-07-15 Thread Sandro Mani
Hi Tim On 15.07.2016 04:18, Tim Sutton wrote: Do you know what the 'know good' version is? The series prior to 4.18, i.e. 4.17 and 4.16 were ok as far as I can remember. Sandro ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List

Re: [Qgis-developer] API Break in 2.16 for QgsComposition

2016-07-14 Thread Tim Sutton
Hi > On 15 Jul 2016, at 1:53 AM, Matthias Kuhn wrote: > > I don't think that was on purpose. > > The method setPicturePath is still in QgsComposerPicture, but apparently it's > not properly converted to the subclass from QgsCompositionItem. > > Might be related to sip

Re: [Qgis-developer] API Break in 2.16 for QgsComposition

2016-07-14 Thread Tim Sutton
Hi Sandro > On 15 Jul 2016, at 12:57 AM, Sandro Mani wrote: > > Hi > > Using Sip-4.18 by any chance? I'm seeing such issues also ever since > upgrading [1], didn't manage to find a solution up to now. (So if this is > indeed the issue, it is not related to QGIS 2.16 but

Re: [Qgis-developer] API Break in 2.16 for QgsComposition

2016-07-14 Thread Matthias Kuhn
I don't think that was on purpose. The method setPicturePath is still in QgsComposerPicture, but apparently it's not properly converted to the subclass from QgsCompositionItem. Might be related to sip like Sandro assumes. We could also check if something broke with the %ConvertToSubclass code.

Re: [Qgis-developer] API Break in 2.16 for QgsComposition

2016-07-14 Thread Sandro Mani
Hi Using Sip-4.18 by any chance? I'm seeing such issues also ever since upgrading [1], didn't manage to find a solution up to now. (So if this is indeed the issue, it is not related to QGIS 2.16 but rather to the sip version.) Sandro [1]

[Qgis-developer] API Break in 2.16 for QgsComposition

2016-07-14 Thread Tim Sutton
Hi All It seems like something broke in QgsComposition (in 2.16 and master) - we have some code like this: logo = self.composition.getComposerItemById('logo') logo.setPicturePath(self.logo_path) Which fails saying that QgsCompositionItem has no method setPicturePath. This used to work fine

[Qgis-developer] API break

2014-03-17 Thread Denis Rouzaud
Hi all, I noticed an API break has been introduced after 2.2: 2.2: void QgsSingleSymbolRendererV2::startRender( QgsRenderContext context, const QgsVectorLayer *vlayer ); 2.3: void QgsSingleSymbolRendererV2::startRender( QgsRenderContext context, const QgsFields fields ); I was using this

Re: [Qgis-developer] API break

2014-03-17 Thread Martin Dobias
Hi Denis On Mon, Mar 17, 2014 at 8:52 PM, Denis Rouzaud denis.rouz...@gmail.com wrote: Hi all, I noticed an API break has been introduced after 2.2: 2.2: void QgsSingleSymbolRendererV2::startRender( QgsRenderContext context, const QgsVectorLayer *vlayer ); 2.3: void