[Development] Qt 5.5.0 header diff: QtPositioning.diff

Blasche Alexander alexander.blasche at theqtcompany.com
Mon Jun 8 09:26:49 CEST 2015


> -----Original Message-----
> Thiago Macieira
> On Friday 05 June 2015 10:10:50 Frederik Gladhorn wrote:
> > -    qreal distanceTo(const QGeoCoordinate &other) const;
> > -    qreal azimuthTo(const QGeoCoordinate &other) const;
> > +    Q_INVOKABLE qreal distanceTo(const QGeoCoordinate &other) const;
> > +    Q_INVOKABLE qreal azimuthTo(const QGeoCoordinate &other) const;
> >
> 
> >From C++, the module looks good.
> 
> >From QML, should there be some Q_REVISION above?

It is not required. The above two functions existed in Qt 5.4 already. We merely swap the C++ object handling the QML representation for QGeoCoordinate. QGeoCoordinate is the new C++ handler and it needs to make the functionality available via Q_INVOKABLE.

--
Alex



More information about the Development mailing list