QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
Base class for validity check contexts. More...
#include <qgsvaliditycheckcontext.h>
Public Types | |
enum | ContextType { TypeLayoutContext = 1 , TypeUserContext = 10001 } |
Available check context types. More... | |
Public Member Functions | |
virtual | ~QgsValidityCheckContext ()=default |
virtual int | type () const =0 |
Returns the context type. | |
Base class for validity check contexts.
QgsAbstractValidityCheck subclasses are passed a QgsValidityCheckContext subclass which encapsulates the context around that particular check type. For instance, a QgsAbstractValidityCheck of the QgsAbstractValidityCheck::TypeLayoutCheck type will be passed a QgsLayoutValidityCheckContext context, containing a reference to the QgsLayout to be checked.
Definition at line 35 of file qgsvaliditycheckcontext.h.
Available check context types.
Enumerator | |
---|---|
TypeLayoutContext | Layout context, see QgsLayoutValidityCheckContext. |
TypeUserContext | Starting point for user contexts. |
Definition at line 50 of file qgsvaliditycheckcontext.h.
|
virtualdefault |
|
pure virtual |
Returns the context type.
Implemented in QgsLayoutValidityCheckContext.