Get rid of the comment about getting rid of the qgseditorwidgetregistry

This commit is contained in:
Matthias Kuhn 2017-07-07 15:11:37 +02:00
parent e6de737fad
commit d28296f27f

View File

@ -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 ) );