Skip to content
Permalink
Browse files
add default constructors to QgsFieldFormatter inherited classes
  • Loading branch information
3nids committed May 24, 2017
1 parent cf68aed commit 5f6d020b130ee27514cdb6eede6d66013958f603
@@ -25,6 +25,11 @@ class QgsDateTimeFieldFormatter : QgsFieldFormatter
static const QString DEFAULT_TIME_FORMAT;
static const QString DEFAULT_DATETIME_FORMAT;

QgsDateTimeFieldFormatter();
%Docstring
Default constructor of field formatter for a date time field.
%End

virtual QString id() const;

virtual QString representValue( QgsVectorLayer *layer, int fieldIndex, const QVariantMap &config, const QVariant &cache, const QVariant &value ) const;
@@ -20,6 +20,11 @@ class QgsFallbackFieldFormatter : QgsFieldFormatter
#include "qgsfallbackfieldformatter.h"
%End
public:

QgsFallbackFieldFormatter();
%Docstring
Default constructor of field formatter as a fallback when no specialized formatter is defined.
%End
virtual QString id() const;
};

@@ -24,6 +24,11 @@ class QgsKeyValueFieldFormatter : QgsFieldFormatter
#include "qgskeyvaluefieldformatter.h"
%End
public:

QgsKeyValueFieldFormatter();
%Docstring
Default constructor of field formatter for a key value field.
%End
virtual QString id() const;
virtual QString representValue( QgsVectorLayer *layer, int fieldIndex, const QVariantMap &config, const QVariant &cache, const QVariant &value ) const;
};
@@ -21,6 +21,11 @@ class QgsListFieldFormatter : QgsFieldFormatter
#include "qgslistfieldformatter.h"
%End
public:

QgsListFieldFormatter();
%Docstring
Default constructor of field formatter for a list field.
%End
virtual QString id() const;

virtual QString representValue( QgsVectorLayer *layer, int fieldIndex, const QVariantMap &config, const QVariant &cache, const QVariant &value ) const;
@@ -21,6 +21,12 @@ class QgsRelationReferenceFieldFormatter : QgsFieldFormatter
#include "qgsrelationreferencefieldformatter.h"
%End
public:

QgsRelationReferenceFieldFormatter();
%Docstring
Default constructor of field formatter for a relation reference field.
%End

virtual QString id() const;

virtual QString representValue( QgsVectorLayer *layer, int fieldIndex, const QVariantMap &config, const QVariant &cache, const QVariant &value ) const;
@@ -37,6 +37,11 @@ class QgsValueMapFieldFormatter : QgsFieldFormatter
It's the magic UUID {2839923C-8B7D-419E-B84B-CA2FE9B80EC7}
%End

QgsValueMapFieldFormatter();
%Docstring
Default constructor of field formatter for a value map field.
%End

virtual QString id() const;

virtual QString representValue( QgsVectorLayer *layer, int fieldIndex, const QVariantMap &config, const QVariant &cache, const QVariant &value ) const;
@@ -34,6 +34,11 @@ class CORE_EXPORT QgsDateTimeFieldFormatter : public QgsFieldFormatter
static const QString DEFAULT_TIME_FORMAT;
static const QString DEFAULT_DATETIME_FORMAT;

/**
* Default constructor of field formatter for a date time field.
*/
QgsDateTimeFieldFormatter() = default;

virtual QString id() const override;

virtual QString representValue( QgsVectorLayer *layer, int fieldIndex, const QVariantMap &config, const QVariant &cache, const QVariant &value ) const override;
@@ -29,6 +29,11 @@
class CORE_EXPORT QgsFallbackFieldFormatter : public QgsFieldFormatter
{
public:

/**
* Default constructor of field formatter as a fallback when no specialized formatter is defined.
*/
QgsFallbackFieldFormatter() = default;
virtual QString id() const override;
};

@@ -33,6 +33,11 @@
class CORE_EXPORT QgsKeyValueFieldFormatter : public QgsFieldFormatter
{
public:

/**
* Default constructor of field formatter for a key value field.
*/
QgsKeyValueFieldFormatter() = default;
virtual QString id() const override;
virtual QString representValue( QgsVectorLayer *layer, int fieldIndex, const QVariantMap &config, const QVariant &cache, const QVariant &value ) const override;
};
@@ -30,6 +30,11 @@
class CORE_EXPORT QgsListFieldFormatter : public QgsFieldFormatter
{
public:

/**
* Default constructor of field formatter for a list field.
*/
QgsListFieldFormatter() = default;
virtual QString id() const override;

virtual QString representValue( QgsVectorLayer *layer, int fieldIndex, const QVariantMap &config, const QVariant &cache, const QVariant &value ) const override;
@@ -30,6 +30,12 @@
class CORE_EXPORT QgsRelationReferenceFieldFormatter : public QgsFieldFormatter
{
public:

/**
* Default constructor of field formatter for a relation reference field.
*/
QgsRelationReferenceFieldFormatter() = default;

virtual QString id() const override;

virtual QString representValue( QgsVectorLayer *layer, int fieldIndex, const QVariantMap &config, const QVariant &cache, const QVariant &value ) const override;
@@ -46,6 +46,11 @@ class CORE_EXPORT QgsValueMapFieldFormatter : public QgsFieldFormatter
*/
static const QString NULL_VALUE;

/**
* Default constructor of field formatter for a value map field.
*/
QgsValueMapFieldFormatter() = default;

virtual QString id() const override;

virtual QString representValue( QgsVectorLayer *layer, int fieldIndex, const QVariantMap &config, const QVariant &cache, const QVariant &value ) const override;

0 comments on commit 5f6d020

Please sign in to comment.