This commit is contained in:
Matthias Kuhn 2019-08-08 08:49:26 +02:00
parent 2ed85987d1
commit 43bbaf0c5d
3 changed files with 9 additions and 2 deletions

View File

@ -177,6 +177,8 @@ Create a new geometry check.
virtual void prepare( const QgsGeometryCheckContext *context, const QVariantMap &configuration ); virtual void prepare( const QgsGeometryCheckContext *context, const QVariantMap &configuration );
%Docstring %Docstring
Will be run in the main thread before collectErrors is called (which may be run from a background thread). Will be run in the main thread before collectErrors is called (which may be run from a background thread).
.. versionadded:: 3.10
%End %End

View File

@ -255,6 +255,8 @@ class ANALYSIS_EXPORT QgsGeometryCheck
/** /**
* Will be run in the main thread before collectErrors is called (which may be run from a background thread). * Will be run in the main thread before collectErrors is called (which may be run from a background thread).
*
* \since QGIS 3.10
*/ */
virtual void prepare( const QgsGeometryCheckContext *context, const QVariantMap &configuration ); virtual void prepare( const QgsGeometryCheckContext *context, const QVariantMap &configuration );

View File

@ -60,8 +60,11 @@ struct ANALYSIS_EXPORT QgsGeometryCheckContext
const QgsCoordinateTransformContext transformContext; const QgsCoordinateTransformContext transformContext;
/** /**
* The project ... blablabla * The project can be used to resolve additional layers.
* Only to be used in the main thread (prepare method) *
* This must only be accessed from the main thread (i.e. do not access from the collectError method)
*
* \since QGIS 3.10
*/ */
const QgsProject *project; const QgsProject *project;