diff --git a/python/core/core_auto.sip b/python/core/core_auto.sip index 7715200a3fbc..742462bfbc39 100644 --- a/python/core/core_auto.sip +++ b/python/core/core_auto.sip @@ -287,6 +287,7 @@ %Include geometry/qgswkbtypes.sip %Include ./3d/qgs3drendererregistry.sip %Include ./3d/qgsabstract3drenderer.sip +%Include fieldformatter/qgsrangefieldformatter.sip %Include fieldformatter/qgsdatetimefieldformatter.sip %Include fieldformatter/qgsfallbackfieldformatter.sip %Include fieldformatter/qgskeyvaluefieldformatter.sip diff --git a/python/core/fieldformatter/qgsrangefieldformatter.sip.in b/python/core/fieldformatter/qgsrangefieldformatter.sip.in new file mode 100644 index 000000000000..02c67bdcfb3a --- /dev/null +++ b/python/core/fieldformatter/qgsrangefieldformatter.sip.in @@ -0,0 +1,42 @@ +/************************************************************************ + * This file has been generated automatically from * + * * + * src/core/fieldformatter/qgsrangefieldformatter.h * + * * + * Do not edit manually ! Edit header and run scripts/sipify.pl again * + ************************************************************************/ + + +class QgsRangeFieldFormatter : QgsFieldFormatter +{ +%Docstring +Field formatter for a range (double) field with precision and locale + +.. versionadded:: 3.0 +%End + +%TypeHeaderCode +#include "qgsrangefieldformatter.h" +%End + public: + + QgsRangeFieldFormatter(); +%Docstring +Default constructor of field formatter for a range (double)field. +%End + + virtual QString id() const; + + + virtual QString representValue( QgsVectorLayer *layer, int fieldIndex, const QVariantMap &config, const QVariant &cache, const QVariant &value ) const; + + +}; + +/************************************************************************ + * This file has been generated automatically from * + * * + * src/core/fieldformatter/qgsrangefieldformatter.h * + * * + * Do not edit manually ! Edit header and run scripts/sipify.pl again * + ************************************************************************/