Skip to content
Permalink
Browse files

Fix warning, unused signal in qgis quick coordinate transformer

  • Loading branch information
nyalldawson committed Jul 4, 2018
1 parent 22ba501 commit a04d22890c1902c057ae01897f249a1e00328513
Showing with 13 additions and 2 deletions.
  1. +8 −1 src/quickgui/qgsquickcoordinatetransformer.cpp
  2. +5 −1 src/quickgui/qgsquickcoordinatetransformer.h
@@ -76,7 +76,14 @@ void QgsQuickCoordinateTransformer::setSourceCrs( const QgsCoordinateReferenceSy

void QgsQuickCoordinateTransformer::setTransformContext( const QgsCoordinateTransformContext &context )
{
mCoordinateTransform.setContext( context );
mTransformContext = context;
mCoordinateTransform.setContext( mTransformContext );
emit transformContextChanged();
}

QgsCoordinateTransformContext QgsQuickCoordinateTransformer::transformContext() const
{
return mTransformContext;
}

void QgsQuickCoordinateTransformer::updatePosition()
@@ -53,7 +53,7 @@ class QUICK_EXPORT QgsQuickCoordinateTransformer : public QObject
Q_PROPERTY( QgsCoordinateReferenceSystem sourceCrs READ sourceCrs WRITE setSourceCrs NOTIFY sourceCrsChanged )

//! Transformation context, can be set from QgsQuickMapSettings::transformContext()
Q_PROPERTY( QgsCoordinateTransformContext transformContext WRITE setTransformContext )
Q_PROPERTY( QgsCoordinateTransformContext transformContext READ transformContext WRITE setTransformContext NOTIFY transformContextChanged )

public:
//! Creates new coordinate transformer
@@ -83,6 +83,9 @@ class QUICK_EXPORT QgsQuickCoordinateTransformer : public QObject
//!\copydoc QgsQuickCoordinateTransformer::transformContext
void setTransformContext( const QgsCoordinateTransformContext &context );

//!\copydoc QgsQuickCoordinateTransformer::transformContext
QgsCoordinateTransformContext transformContext() const;

signals:
//!\copydoc QgsQuickCoordinateTransformer::projectedPosition
void projectedPositionChanged();
@@ -105,6 +108,7 @@ class QUICK_EXPORT QgsQuickCoordinateTransformer : public QObject
QgsPoint mProjectedPosition;
QgsPoint mSourcePosition;
QgsCoordinateTransform mCoordinateTransform;
QgsCoordinateTransformContext mTransformContext;
};

#endif // QGSQUICKCOORDINATETRANSFORMER_H

0 comments on commit a04d228

Please sign in to comment.
You can’t perform that action at this time.