mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
[qml] Expose QgsLocatorContext's transformContext as property
This commit is contained in:
parent
657d3d3190
commit
714ddff739
@ -49,6 +49,7 @@ Constructor for QgsCoordinateTransformContext.
|
||||
QgsCoordinateTransformContext( const QgsCoordinateTransformContext &rhs );
|
||||
|
||||
bool operator==( const QgsCoordinateTransformContext &rhs ) const;
|
||||
bool operator!=( const QgsCoordinateTransformContext &rhs ) const;
|
||||
|
||||
void clear();
|
||||
%Docstring
|
||||
|
@ -49,6 +49,7 @@ Constructor for QgsCoordinateTransformContext.
|
||||
QgsCoordinateTransformContext( const QgsCoordinateTransformContext &rhs );
|
||||
|
||||
bool operator==( const QgsCoordinateTransformContext &rhs ) const;
|
||||
bool operator!=( const QgsCoordinateTransformContext &rhs ) const;
|
||||
|
||||
void clear();
|
||||
%Docstring
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include "qgsbox3d.h"
|
||||
#include "qgspolygon.h"
|
||||
#include "qgslinestring.h"
|
||||
#include "moc_qgsrectangle.cpp"
|
||||
|
||||
#include <QString>
|
||||
#include <QTextStream>
|
||||
|
@ -34,6 +34,7 @@ class CORE_EXPORT QgsLocatorContext
|
||||
|
||||
Q_PROPERTY( QgsRectangle targetExtent MEMBER targetExtent )
|
||||
Q_PROPERTY( QgsCoordinateReferenceSystem targetExtentCrs MEMBER targetExtentCrs )
|
||||
Q_PROPERTY( QgsCoordinateTransformContext transformContext MEMBER transformContext )
|
||||
Q_PROPERTY( bool usingPrefix MEMBER usingPrefix )
|
||||
|
||||
public:
|
||||
|
@ -65,6 +65,11 @@ bool QgsCoordinateTransformContext::operator==( const QgsCoordinateTransformCont
|
||||
return equal;
|
||||
}
|
||||
|
||||
bool QgsCoordinateTransformContext::operator!=( const QgsCoordinateTransformContext &rhs ) const
|
||||
{
|
||||
return !( *this == rhs );
|
||||
}
|
||||
|
||||
void QgsCoordinateTransformContext::clear()
|
||||
{
|
||||
d.detach();
|
||||
|
@ -67,7 +67,8 @@ class CORE_EXPORT QgsCoordinateTransformContext
|
||||
QgsCoordinateTransformContext( const QgsCoordinateTransformContext &rhs );
|
||||
QgsCoordinateTransformContext &operator=( const QgsCoordinateTransformContext &rhs ) SIP_SKIP;
|
||||
|
||||
bool operator==( const QgsCoordinateTransformContext &rhs ) const ;
|
||||
bool operator==( const QgsCoordinateTransformContext &rhs ) const;
|
||||
bool operator!=( const QgsCoordinateTransformContext &rhs ) const;
|
||||
|
||||
/**
|
||||
* Clears all stored transform information from the context.
|
||||
|
Loading…
x
Reference in New Issue
Block a user