27#include "moc_qgssymbolconverterregistry.cpp"
35 qDeleteAll( mConverters );
52 if ( mConverters.contains(
converter->name() ) )
61 return mConverters.value( name,
nullptr );
66 if ( !mConverters.contains( name ) )
69 delete mConverters.take( name );
75 return mConverters.keys();
An abstract base class for converting between QgsSymbol objects and QVariant representations.
A symbol converter for converting ESRI REST JSON symbols.
A symbol converter for converting MapBox GL JSON values to QgsSymbol objects.
A symbol converter for converting QgsSymbol objects to and from the OGR style string format.
A symbol converter for converting QgsSymbol objects to and from QGIS's native QML XML format.
bool addConverter(QgsAbstractSymbolConverter *converter)
Adds a converter to the registry.
~QgsSymbolConverterRegistry() override
QgsSymbolConverterRegistry(QObject *parent=nullptr)
Creates a new empty symbol converter registry.
QStringList converterNames() const
Returns a list of the registered converter names (IDs).
QgsAbstractSymbolConverter * converter(const QString &name) const
Returns the converter with matching name, or nullptr if no matching converter is registered.
bool removeConverter(const QString &name)
Removes the converter with matching name.
void populate()
Adds the default symbol converters to the registry.
A symbol converter for converting QgsSymbol objects to and from the Styled Layer Descriptor (SLD) for...