Skip to content

Commit 82d1871

Browse files
committedDec 20, 2016
Put field kit into use
1 parent 9a53b7d commit 82d1871

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+434
-363
lines changed
 

‎python/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ INCLUDE_DIRECTORIES(
101101
../src/core/composer
102102
../src/core/diagram
103103
../src/core/effects
104+
../src/core/fieldkit
104105
../src/core/dxf
105106
../src/core/geometry
106107
../src/core/gps

‎python/gui/editorwidgets/core/qgseditorwidgetfactory.sip

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -110,42 +110,6 @@ class QgsEditorWidgetFactory
110110
*/
111111
//virtual QHash<const char*, int> supportedWidgetTypes();
112112

113-
/**
114-
* If the default sort order should be overwritten for this widget, you can transform the value in here.
115-
*
116-
* @param vl The vector layer.
117-
* @param fieldIdx The index of the field.
118-
* @param config The editor widget config.
119-
* @param cache The editor widget cache.
120-
* @param value The value to represent.
121-
*
122-
* @return By default the value is returned unmodified.
123-
*
124-
* @note Added in 2.16
125-
*/
126-
virtual QVariant sortValue( QgsVectorLayer* vl, int fieldIdx, const QgsEditorWidgetConfig& config, const QVariant& cache, const QVariant& value ) const;
127-
128-
/**
129-
* Return the alignment for a particular field. By default this will consider the field type but can be overwritten if mapped
130-
* values are represented.
131-
* @param vl The vector layer.
132-
* @param fieldIdx The index of the field.
133-
* @param config The editor widget config.
134-
* @return The alignment flag, normally Qt::AlignRight or Qt::AlignLeft
135-
*/
136-
virtual Qt::AlignmentFlag alignmentFlag( QgsVectorLayer* vl, int fieldIdx, const QgsEditorWidgetConfig& config ) const;
137-
138-
/**
139-
* Create a cache for a given field.
140-
*
141-
* @param vl The vector layer.
142-
* @param fieldIdx The index of the field.
143-
* @param config The editor widget config.
144-
*
145-
* @return The default implementation returns an invalid QVariant
146-
*/
147-
virtual QVariant createCache( QgsVectorLayer* vl, int fieldIdx, const QgsEditorWidgetConfig& config );
148-
149113
/**
150114
* Read the config from an XML file and map it to a proper {@link QgsEditorWidgetConfig}.
151115
*

0 commit comments

Comments
 (0)