2017-05-23 14:35:48 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/fieldformatter/qgskeyvaluefieldformatter.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
2016-12-04 17:23:37 +01:00
|
|
|
|
2016-12-06 14:20:21 +01:00
|
|
|
class QgsKeyValueFieldFormatter : QgsFieldFormatter
|
2016-12-04 17:23:37 +01:00
|
|
|
{
|
2017-05-23 14:35:48 +02:00
|
|
|
%Docstring
|
|
|
|
Field formatter for a key value field.
|
|
|
|
This represents a list type value.
|
|
|
|
Values will be represented as a colon-delimited and
|
|
|
|
comma-separated list.
|
|
|
|
|
|
|
|
E.g. "color: yellow, amount: 5"
|
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
2016-12-04 17:23:37 +01:00
|
|
|
%TypeHeaderCode
|
2016-12-06 14:20:21 +01:00
|
|
|
#include "qgskeyvaluefieldformatter.h"
|
2016-12-04 17:23:37 +01:00
|
|
|
%End
|
|
|
|
public:
|
2017-05-24 07:54:57 +02:00
|
|
|
|
|
|
|
QgsKeyValueFieldFormatter();
|
|
|
|
%Docstring
|
|
|
|
Default constructor of field formatter for a key value field.
|
|
|
|
%End
|
2017-05-23 14:35:48 +02:00
|
|
|
virtual QString id() const;
|
|
|
|
virtual QString representValue( QgsVectorLayer *layer, int fieldIndex, const QVariantMap &config, const QVariant &cache, const QVariant &value ) const;
|
2016-12-04 17:23:37 +01:00
|
|
|
};
|
2017-05-23 14:35:48 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/fieldformatter/qgskeyvaluefieldformatter.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|