mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Get rid of the comment about getting rid of the qgseditorwidgetregistry
This commit is contained in:
parent
e6de737fad
commit
d28296f27f
@ -2357,7 +2357,6 @@ namespace QgsWms
|
||||
|
||||
QString QgsRenderer::replaceValueMapAndRelation( QgsVectorLayer *vl, int idx, const QString &attributeVal )
|
||||
{
|
||||
// TODO Could we get rid of QgsEditorWidgetRegistry dependency ?
|
||||
const QgsEditorWidgetSetup setup = vl->editorWidgetSetup( idx );
|
||||
QgsFieldFormatter *fieldFormatter = QgsApplication::fieldFormatterRegistry()->fieldFormatter( setup.type() );
|
||||
QString value( fieldFormatter->representValue( vl, idx, setup.config(), QVariant(), attributeVal ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user