From 287f82286be0d6c380f7931b544d531101180d49 Mon Sep 17 00:00:00 2001 From: Alessandro Pasotti Date: Fri, 2 Feb 2018 08:10:54 +0100 Subject: [PATCH] Add QgsRangeFieldFormatter to bindings --- python/core/core_auto.sip | 1 + .../qgsrangefieldformatter.sip.in | 42 +++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 python/core/fieldformatter/qgsrangefieldformatter.sip.in 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 * + ************************************************************************/