Navigation Menu

Skip to content

Commit

Permalink
Add QgsRangeFieldFormatter to bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Feb 2, 2018
1 parent 8ae65b3 commit 287f822
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/core/core_auto.sip
Expand Up @@ -287,6 +287,7 @@
%Include geometry/qgswkbtypes.sip %Include geometry/qgswkbtypes.sip
%Include ./3d/qgs3drendererregistry.sip %Include ./3d/qgs3drendererregistry.sip
%Include ./3d/qgsabstract3drenderer.sip %Include ./3d/qgsabstract3drenderer.sip
%Include fieldformatter/qgsrangefieldformatter.sip
%Include fieldformatter/qgsdatetimefieldformatter.sip %Include fieldformatter/qgsdatetimefieldformatter.sip
%Include fieldformatter/qgsfallbackfieldformatter.sip %Include fieldformatter/qgsfallbackfieldformatter.sip
%Include fieldformatter/qgskeyvaluefieldformatter.sip %Include fieldformatter/qgskeyvaluefieldformatter.sip
Expand Down
42 changes: 42 additions & 0 deletions 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 *
************************************************************************/

0 comments on commit 287f822

Please sign in to comment.