Skip to content

Commit 287f822

Browse files
committed
Add QgsRangeFieldFormatter to bindings
1 parent 8ae65b3 commit 287f822

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

python/core/core_auto.sip

+1
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@
287287
%Include geometry/qgswkbtypes.sip
288288
%Include ./3d/qgs3drendererregistry.sip
289289
%Include ./3d/qgsabstract3drenderer.sip
290+
%Include fieldformatter/qgsrangefieldformatter.sip
290291
%Include fieldformatter/qgsdatetimefieldformatter.sip
291292
%Include fieldformatter/qgsfallbackfieldformatter.sip
292293
%Include fieldformatter/qgskeyvaluefieldformatter.sip
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/************************************************************************
2+
* This file has been generated automatically from *
3+
* *
4+
* src/core/fieldformatter/qgsrangefieldformatter.h *
5+
* *
6+
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
7+
************************************************************************/
8+
9+
10+
class QgsRangeFieldFormatter : QgsFieldFormatter
11+
{
12+
%Docstring
13+
Field formatter for a range (double) field with precision and locale
14+
15+
.. versionadded:: 3.0
16+
%End
17+
18+
%TypeHeaderCode
19+
#include "qgsrangefieldformatter.h"
20+
%End
21+
public:
22+
23+
QgsRangeFieldFormatter();
24+
%Docstring
25+
Default constructor of field formatter for a range (double)field.
26+
%End
27+
28+
virtual QString id() const;
29+
30+
31+
virtual QString representValue( QgsVectorLayer *layer, int fieldIndex, const QVariantMap &config, const QVariant &cache, const QVariant &value ) const;
32+
33+
34+
};
35+
36+
/************************************************************************
37+
* This file has been generated automatically from *
38+
* *
39+
* src/core/fieldformatter/qgsrangefieldformatter.h *
40+
* *
41+
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
42+
************************************************************************/

0 commit comments

Comments
 (0)